Important Links
- GrafAna Monitoring of the Cold Box
- GrafAna Monitoring of the Modules
- Cold Box GUI
- Official ColdJig Software Documentation
- Warwick Cold Box Manual
- Cold Testing Specification
- Module Testing Twiki
Training Modules
There are two prototype modules, BHM_SS04
and BHM_LS02
, that can be used to training. There are prototype modules using the v0 chipset and cannot be operated at the same time as production modules. Their config is saved under training
ITSDAQ setup.
Checklist for Opening the Box
Opening the lid will bring the lab air (~50% RH) into the box, with a rough dew point of 10°C. If the box is cold, this can cause condensation on the modules or walls. Make sure that the box is warm before opening it.
The power supplies should also be off when disconnecting modules. Always ramp down HV! Don't just turn it off.
- Chiller is at 20°C.
- Peltiers are set in IDLE mode.
- Low and High Voltage power supplies are turned off.
Running A Cold Noise Thermal Cycle
The test runs X thermal cycles, with a test at each point. Each thermal cycle takes 1.5 hours. See specific sections on how to execute specific commands.
- Make sure that the box is safe to open (see checklist). Especially that the chiller is at 20°C.
- Make sure that the HV and LV power supply outputs are off.
- Open the box.
- Remove caps from the mini-DP connectors.
- Place modules (testframe and spacer, but without the acrylic covers) on chucks.
- Fix the modules using four longer screws in the four corners. See Fig 21 in the Cold Testing Specification document.
- Ground the modules using one shorter screw in the top right corner.
- Connect the 2x3 molex power cable to the modules. The connector is keyed.
- Connect the miniDP connectors. The red tagged cable goes to the left (DATA).
- Close the Cold Box. Check that the GrafAna page says that the box is closed.
- Turn on dry air (gauge attached on the left side of the box). A good target is 10 L/min.
- Set the LV power supply output to 11V and current compliance to 5A.
- Turn on the LV power supply to check a reasonable current draw. The current should read 50 mA times the number of modules.
- Turn off the LV power supply. The coldjig software will take care of powering as part of the thermal cycling sequence.
- Edit the
st_system_config.dat
file with corresponding channels. - Regenerate the configuration with the connected modules (See Auto-Config via ITk-PDB).
- Start ITSDCS with the new configuration.
- Start ITSDAQ with the new configuration.
- Select loaded chucks in the left hand side of the WebGUI. Do not fill the module serial numbers (they are ignored).
- Start the thermal cycling.
- Wait for thermal cycling to complete. Monitor the GrafAna for issues.
- Remove modules. Make sure to follow the checklist.
Starting Testing Software
The testing software consists of three parts:
- The Cold Box GUI accessible via browser at http://eplgw1:5000 on the testing computer.
- The ITSDAQ controller that receives commands from the GUI to run tests.
- The ITSDAQ controller (ITSDCS) that receives commands to monitor Powerboards and control power supplies.
Cold Box GUI
The Cold Box GUI should always be running to monitor the conditions of the box at all times. The data can be viewed on GrafAna. If the GUI is not running (ie: http://eplgw1:5000 is not accessible) or needs to be restarted, it can be started by running the following on the bpapi004
machine. One needs to hop through eplgw1
to access it.
ssh yourusername@eprexb
ssh yourusername@eplgw1
ssh pi@bpapi004
cd ~/coldjig-6.2.0/coldjig_workspace/UK_China_Barrel
pipenv run coldbox_controller_webgui.py -c configs/birmingham_config.ini -v
Then navigate to the WebGUI in a browser and click the green "Start" button. In about 10-20 seconds, data should start appearing in GrafAna.
Shutting Down The GUI
Opening the cold box, even when warm, will trigger the box open warning and spam the GUI. The only practical way to get rid of them is to restart the GUI.
- Use the red "Shutdown" button. This will stop the thread and the GUI.
kill $(ps ax | grep coldbox_controller_webgui.py | awk "{print $1}")
on theeplpl004
command line.
Doing Ctrl+C
to the process will not stop it due to a bug in thread management.
Auto-Config via ITK-PDB
Run ITSDAQ manually at first to confirm that communication with the modules is OK and to download the recommended configurations from the database.
YOu need to manually turn ON the LV power supply. Make sure to turn it OFF afterwards as the ColdJig will take care of the powering during thermal cycling.
Start interactive ITSDAQ.
cd ~/itk-module-testing-workspace/itsdaq-sw
source ../setup.sh
./RUNITSDAQ.sh
Look for the following lines to ensure all chips responded. They will be highlighted in green.
INFO: all expected HCCs present.
...
INFO: all expected ABCs are present.
...
AutoConfig.cpp - Success! HVMap: successfully mapped all AMACs
Run the following command in the ITSDAQ terminal. It will rerun the auto configuration, but querying the ITK-PDB for recommended values. At one point, you will be asked to enter your credidentials. The recommended values will be saved to disk and picked up by the ColdJig during thermal cycling.
AutoConfig(true, false, false)
ITSDAQ Control
There are two ITSDAQ macros that need to be running on epldt116
to control the
modules.
- DAQ: control the module and runs tests
- DCS: monitors the powerboards and controls the power supplies
ITSDCS Control
The ITSDCS control can be running 24/7. There is no need to restart it for newly loaded modules.
cd ~/itk-module-testing-workspace/itsdaq-sw
source ../setup.sh
INFLUX_COMMAND_SET=2 ./INFLUX_AMAC.sh
To shutdown ITSDCS control, use Ctrl+C
.
ITSDAQ Control
The ITSDAQ control needs to be restarted anytime new modules are loaded. This is to reload the configuration. See the ITSDAQ configuration for instructions on how to generate new configurations.
cd ~/itk-module-testing-workspace/itsdaq-sw
source ../setup.sh
INFLUX_COMMAND_SET=2 ./INFLUX_DAQ.sh
To shutdown ITSDCS control, use Ctrl+C
.
Manually Turning Off a Module
The following commands should be run from the epldt116
machine if you manually
need to turn off a module.
Manually confirm that a command has "Completed" by checking for a response in the WebGUI.. This program only sends the command and does not wait for ITSDAQ response.
./bin/influx_command --sender COLDJIG --receiver ITSDCS --setup BIRMINGHAM --command HV_OFF
./bin/influx_command --sender COLDJIG --receiver ITSDCS --setup BIRMINGHAM --command HYBRID_OFF
Then you can turn off the LV power supply via LOCAL
, OUTPUT
on the left
channel.
Handling Problems
The following lists possible issues that can appear when monitoring GrafAna and recommended actions to take.
No Data in GrafAna
Data will stop appearing if the GUI crashed for some reason. The actions are to restart the whole process.
- Make sure the HV and LV power supplies are off. See "Manually Turning Off a Module."
- Restart the GUI.
- Start test again.
Dew Point Breached.
If any of the measured temperatures fall below the dew point, it is important to warm up the box as fast as possible. The HV should be turned off. The LV should stay on and the hybrids should remain powered.
- Use the advanced tab to set the chiller temperature to 20C.
- Stop thermal cycling by killing the GUI process.
- Start the GUI and only start monitoring. Ensure that the chiller is still set to 20C.
- Ramp down HV using the following command. Do not turn off hybrids as they help to keep the module warm.
./bin/influx_command --sender COLDJIG --receiver ITSDCS --setup BIRMINGHAM --command HV_OFF
Missed Command in Influx
Occasionally ITSDAQ misses a command that was sent to it. If a command appears to be taking too long to complete
(no "Compelted" response seen in GrafAna), then check if the responsible commander is actually doing something. If
it is waiting for a command, then you might need to resend it. In a new terminal, source the setup script and run
the following command. Do not close any existing ITSDAQ instances. Make sure to change ITSDCS
and HV_OFF
to the
receiver and command that was missed.
./bin/influx_command --sender COLDJIG --receiver ITSDAQ --setup BIRMINGHAM --command HV_OFF