Conversation
|
Can you include newer versions of these scripts, if still interested? |
|
Sure, after ICALEPS 25 meeting. |
|
Ping :) |
|
Hi Enrico, I checked the setup, and the ImageJ scripts themselves do not need to be modified. The important part is how and from where they are invoked by CSS/Phoebus. The main consideration is the installation location of the ImageJ EPICS macros. By default, ImageJ expects macros to reside in its macros directory. However, at ORNL we deploy these macros as part of a site-wide custom ImageJ installation on a mounted filesystem, rather than under the system ImageJ package path. For example, on my Ubuntu office laptop system I placed the macros in folder (even though i use ubuntu imgej package):
This mirrors the beamline deployment and allows existing CSS/Phoebus screens to work unchanged on my laptop. The key requirement is that CSS/Phoebus must consistently point to the macro launch scripts at the chosen location, regardless of whether that location is the system ImageJ install or a centrally managed one (e.g., via Puppet/Ansible). In short: Macros can live wherever ImageJ is installed for the site. CSS/Phoebus should call the corresponding .sh launcher scripts from that location. Using a shared, mounted ImageJ installation simplifies deployment across all beamlines. |
|
Kaz, I'm not sure I understand fully. Does this mean this PR doesn't need to be merged at all, or that the scripts don't require any updates? Maybe this could be best solved with deployment documentation? |
|
Hi Erico, Thanks for the question — let me clarify. I do think this PR should be merged. The main value here is that it provides the four scripts that each site will need to deploy into their respective ImageJ directories. Even if the scripts themselves don’t require further changes right now, having them versioned and available in the repository simplifies adoption and keeps deployments consistent across sites. To make the usage clearer, I can add a Phoebus button example as part of the standard “first screen” for areaDetector. That would demonstrate how these scripts are intended to be invoked in practice and reduce ambiguity for new users. I agree that deployment documentation would also help, and I’m happy to contribute a short section describing where the scripts should go and how they are used. So in short: The PR should be merged to make the scripts available and standardized Let me know if that addresses your concern. Best, |
At NSLS2 we find useful macros that populate PVs into the EPICS imagej viewers.
Given that there are 100's of cameras and detectors at the NSLS2, this saves a lot of time.
These scripts were developed for integration with CSS/Phoebus, but could be used/ expanded for use with other EPICS clients.
Installation requires copying 4 files into the ImageJ 'macros' folder.