Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image j macros #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ImageJ/EPICS_macros/CSS_epics.ijm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
run("EPICS AD Viewer");
1 change: 1 addition & 0 deletions ImageJ/EPICS_macros/CSS_epics_pva.ijm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
run("EPICS NTNDA Viewer");
24 changes: 24 additions & 0 deletions ImageJ/EPICS_macros/css_imagej.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# EPICS_AD_Viewer macro
# Authors
# Kaz Gofron, NSLS2
#
# Place 4 files in /usr/share/imagej/macros folder
# Channel Access:
# CSS_epics.ijm
# css_imagej.sh
# PV Access:
# CSS_epics_pva.ijm
# css_imagej_pva.sh
#
# From CSS/Phoebus/... call .sh script
# Channel Access:
# /usr/share/imagej/macros/css_imagej.sh $(Sys)$(Dev)image1:
# PV Access:
# /usr/share/imagej/macros/css_imagej_pva.sh $(Sys)$(Dev)Pva1:Image
# which will start imagej viewer with populated PVs

export EPICS_CA_MAX_ARRAY_BYTES=6000000
cd ~
rm EPICS_AD_Viewer.properties
echo "PVPrefix=$1" > EPICS_AD_Viewer.properties
imagej -m ~/.imagej/macros/CSS_epics.ijm
24 changes: 24 additions & 0 deletions ImageJ/EPICS_macros/css_imagej_pva.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# EPICS_AD_Viewer macro
# Authors
# Kaz Gofron, NSLS2
#
# Place 4 files in /usr/share/imagej/macros folder
# Channel Access:
# CSS_epics.ijm
# css_imagej.sh
# PV Access:
# CSS_epics_pva.ijm
# css_imagej_pva.sh
#
# From CSS/Phoebus/... call .sh script
# Channel Access:
# /usr/share/imagej/macros/css_imagej.sh $(Sys)$(Dev)image1:
# PV Access:
# /usr/share/imagej/macros/css_imagej_pva.sh $(Sys)$(Dev)Pva1:Image
# which will start imagej viewer with populated PVs

cd ~
rm EPICS_NTNDA_Viewer.properties
echo "channelName=$1" > EPICS_NTNDA_Viewer.properties
imagej -m ~/.imagej/macros/CSS_epics_pva.ijm