Skip to content
Snippets Groups Projects
Commit cedfe49b authored by tguruswamy's avatar tguruswamy
Browse files

Add better example of startup script to run at APS

parent bb1382a1
No related branches found
No related tags found
No related merge requests found
......@@ -126,5 +126,8 @@ done
popd
# Copy example APS startup script into ImageJ folder
cp -a "start_imagej_aps" ImageJ/
# Make permissions consistent
chmod -R ug=rwX,o=rX ImageJ
#!/bin/bash
# Example script to start ImageJ with compressed PVarray support from ADSupport. Adjust paths as necessary
cd ${HOME}/ImageJ
export EPICS_CA_MAX_ARRAY_BYTES=30000000
export EPICS_CA_AUTO_ADDR_LIST=NO
export EPICS_CA_ADDR_LIST=127.0.0.1
export LD_LIBRARY_PATH=${HOME}/epics/synApps-6.2.1/support/areaDetector-R3-12-1/ADSupport/lib/linux-x86_64/
./ImageJ -run "EPICS NTNDA Viewer" &
#!/bin/bash
version=$( source /etc/os-release; echo $VERSION_ID | grep -oP '[0-9]+(?=\.)' )
if [[($version == 9)]]
then
export LD_LIBRARY_PATH=/APSshare/epics/synApps_6_2_1/support/areaDetector-R3-12-1/ADSupport/lib/rhel9-x86_64${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
elif [[($version == 8)]]
then
export LD_LIBRARY_PATH=/APSshare/epics/synApps_6_2_1/support/areaDetector-R3-12-1/ADSupport/lib/rhel8-x86_64${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
elif [[($version == 7)]]
then
export LD_LIBRARY_PATH=/APSshare/epics/synApps_6_2_1/support/areaDetector-R3-12-1/ADSupport/lib/rhel7-x86_64${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
else
export LD_LIBRARY_PATH=/APSshare/epics/synApps_6_2_1/support/areaDetector-R3-12-1/ADSupport/lib/linux-x86_64${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
fi
export EPICS_CA_MAX_ARRAY_BYTES=72000000
# Stop using the old imagej viewer. New one is faster and does not need EPICS_CA_MAX_ARRAY_BYTES
#./ImageJ -run "EPICS AD Viewer" &
# Please enable the PVA plugin and use that PV in the NTNDA version
# https://areadetector.github.io/master/ADViewers/ad_viewers.html#areadetector-viewers
# channelName will be something like this: 13SIM1:Pva1:Image
./ImageJ -run "EPICS NTNDA Viewer" &
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment