Detector Characterisation›General
#31775
Science-mode flag
To help the DetChar activity, I implemented a 'science-mode flag', for now named DQ_SCIENCE_MODE. The flag is the logical AND of the following conditions:
-some checks of INJ signals to see if the IMC and RFC are locked, the automatic alignment of the IMC is switched on and the galvos for the IMC quadrants are scanning. For this purpose, Paolo added some new 'gnames' and probes to the various DSPs.
-a manual switch to enable or disable science mode, which can be set via buttons on the VPM interface. The value of the switch is visible as a slow channel named DQ_SCIENCE_MODE_ENBL
-a check for working hours, weekdays from 7:00-21:00 are considered commissioning time, nights and weekends are potential science mode.
The logic was implemented in Python using the new PyALP application. The latest version of the algorithm can be seen here. The logic should probably still be tweaked a bit according to the wishes of DetChar, which can be done by changing just 1 or 2 lines.
3 comments