[Ushiba, Yuzu]
We implemented the script to subtract the dark offset values for QPDs.
- The script checks whether the beam shutters (GR/IR) are closed, takes averages of PD values over 60 s, assigns the dark values in the offsets and turn on the switches for OFFSET.
- Script is located in /opt/rtcds/userapps/release/asc/k1/scripts/subtract_dark_offset.py
- Usage
- To subtract the dark offset for all PDs, run subtract_dark_offset.py
- To subtract the dark offset for all QPDs, run subtract_dark_offset.py -p QPD
- To subtract the dark offset except for QPDs, run subtract_dark_offset.py -p notQPD
- The PD list to subtract the dark offset is located in /opt/rtcds/userapps/release/asc/k1/scripts/pd_20240617.txt
- When you want to add the PD, please edit this list by yourself.
- This list was constructed from the document for ADC/DAC channel assignment and checked by eyeball of Ushiba-san. Note that we didn't include the PDs related to ISS and f3 WFS(recently Hirose-san is working on), because we don't know the expected situation.
- The current number of PDs is 285. To avoid the low-level DAQ error, we limit the number of channels (120) and read data. In maximum, we read channel data three times. It takes more than 3 minutes.
- I prepared the button to launch this script in the bottom of Commissioning dock. (See attached screenshot)