The program used for the test beam is called two_chambers.vi; you find it in C:\TEST_MC\test_beam\two_chambers.vi, or as a link in the Desktop. Double click on the icon to start it. A window like this
will appear. You have to start the program
(click once on the white arrow
)
then select one of the chambers by clicking
on the big button; the selected one will become green.
The ID of the CCB board is indicated on the left of the chamber. On the right of the chamber there is a LED monitoring the status of the chamber itself; the monitoring is enabled when the check box on the right of the LED is selected; the monitoring will be done every 60 seconds. The chamber status is right when the LED is off, a red LED indicates warnings or errors. The status detail can be inspected by clicking on the LED itself (see the Display MC status section).
On the upper part of the panel, the run number and the name of the xdaq server are shown; for the test beam at CERN select pcphmc4.cern.ch.
On the bottom part of the panel, the STOP button stops the program, the field "command" contains a list of the commands which can be sent to the selected chamber. The command is sent by clicking on the button "Execute".
From the main program two_chambers, select and execute the "Display MC status" command, in order to check the status of the minicrate before anything else. Then you can proceed with the configuration (command "Configure MC").
Select the "general" tab; the panel will appear like:
On the upper left, the ID of the CCB board, the minicrate type and the version of the program running of the CCB are shown.
The status is checked regularly; the time interval is indicated in the field "Read every" (default = 30 s, minimun = 10 s). The "updating data" LED is on during data refresh. The checkbox "Disable QPLL check" allows to disable the monitoring of the QPLL locking (default for the test beam: disabled). The checkbox "read_tdc_status" enable the monitoring of all the TDCs; otherwise a single bit of error is read from the ROBs, but not the details for all boards.
The three LEDs "MC_state_err", "FE_state_err", "TDC_state_err" are green when everything is ok, red if there are some troubles (in minicrate, front-end, tdc, respectively). The details are viewable in the other tabs, "MC state", "FE state" and "TDC state", which are described here.
The last tab, "Pwr on boards", is described here, and is intended to switch on the power controls that for some reasons are off.
Send the command "Configure MC" from the main panel then go to the "config" tab. The ID of the CCB board and the type of minicrate are shown on the upper right corner. Please check that they are correct.
Then choose the configuration file, by clicking on the folder
(
) image.
The directory where the files for the test beam are locate is
C:\TEST_MC\CONFIG TB2004\ and some of the files are:
Enable the "Calculate LUTs" switch (because the configuration files contain the parameters for the LUT calculation).
In case of "default" file: in the "select" bar (below the "Config file" field), click on the "select ALL" led in order to enable all (tsm, tss, ..., others) configurations (except LUT preload).
In case of the "thetaON" file, only the "tdc" led has to be selected.
Set the variables "CPU CK delay" to 10-12 ns (it works for the test beam set-up). If you get errors in the TDC configuration, try other values.
Click the "Configure" button in order to start the configuration. The number of configured boards should begin to run. In the windows some text will appear in case of configuration errors (and also the "fail" led will be switched on). When the configuration is over all the "ok" leds will be on, and a pop-up window will appear.
In case of errors, they could be due to blocks switched off. Check (and eventually switch on) the power controls in the Display MC status panel. If the errors are in the TDC configuration, try another value for the "CPU CK delay" (default=0).
Thresholds are already set from the Configure MC program, but can be changed/displayed by the program "Set/display thresholds"; the program is started by selecting the corresponding command from the main program two_chambers and pressing the "Execute" button.
As usual the minicrate type and CCB ID are shown. The thresholds are shown for the three superayers. The values can be set to the default (Bias = 1.5 V, Threshold = 15 mV, Width = 3 V) by clicking on the "Set to Default button". The actual values are read from the chamber with the "Read Thresh." button. Different values can be entered in the "Bias" and "Thresh." fields, and set by clicking on the "Set thresholds" button.
The control is given back to the main panel by clicking on the "CLOSE" button.
Proceed first with the check of minicrate status and the configuration, as described in the Standard run setup section. Then select in the main program the "Set Test Pulse" command and press "Execute".
Insert the following default values in the panel "TP set":
Then set the values by pressing the right arrow
(
) on the command bar.
After the configurations are done, go back to the main panel
by clicking on the
symbol in the
command bar.
"General" tab: it is described here.
"MC state" tab:
The "status flag" cluster shows varios status bits; the normal status is 1 (on). The "fault flag" cluster shows the corresponding error bits; the normal status is 0. If some of the powers indicated in the "status flag" are off (=0), they can be switched on from the tab "Pwr on boards".
In the "Various" cluster, the LoseLockCount variable (normal status: 0) gives sometimes error. It can be ignored.
More information are available for the trigger boards (TRB), the read-out boards (ROB), power.
"FE state" tab:
Here the information about front-end bias, thresholds, chip temperatures is shown.
"TDC state" tab:
An error bit for the read-out boards is shown here. From the general tab it can be chosen to display also the detail for all the TDCs.
"Pwr on boards" tab:
If some of the power blocks are off, they can be switched on from this tab (the status of the blocks is repeated here). Select the checkbox of the desired block(s) to turn on, then click on the switch named "pwr on blocks". In the field "messages" will appear a messagge indicating the succes or the error codes returned by the power on commands.
From the two_chambers program, select and execute the "Check FE status" command. The front panel of the program will appear:
This program check the voltages on the three superlayers (Vcc and Vdd) and the maximum and medium temperature of the front-end boards (Tmax, Tmed), once every 5 seconds. Also the voltages in input to the splitter are shown. The LEDs become red when the value of voltage or temperature is out of the allowed range. The big "ALARM" led becomes red when at least one of the other leds is red. The program is closed with the "CLOSE" button.
From the two_chambers program, select and execute the "TDC display" command. The front panel of the program will appear:
Press the "update" switch, then the status of the TDC channel will be shown. The enabled channels are shown in green. The correct pattern for a mb1 and a mb3 chambers is shown below. (Images to be added!!!)
From the two_chambers program, select and execute the "Display/set FE mask" command. The front panel of the program will appear:
This program allows the user to save/read masks to a file and mask front-end channels. In the "Commands" tab are grouped the following buttons:
The "Superlayer" tabs:
allow to mask front-end channels (after the selection of channel to mask/unmask, remember to set the configuration on the front-end with the "Set mask" command in the "command" tab). A single channel can be masked/unmasked, as well as a whole layer or board (FEB). Is it also possible to switch on/off a whole superlayer, by clicking on the appropriate button.
The read-out of the temperature may also be masked/unmasked.
From the two_chambers program, select and execute the "TrgOut Select" command. The front panel of the program will appear:
This program allow to choose the trigger type. The default is loaded by the two_chambers program, and is:
To change the default, select the desired trigger configuration,
then run the program (
symbol
on the command bar).
To go back to the main program,
click on the
symbol.
Only for experts.
Only for experts.
From the two_chambers program, select and execute the "Set L1A" command. The front panel of the program will appear:
Write the desired delay in the "delay_ns" field.
Start the program by clicking on the black arrow
(
) on the command bar,
then go back to the main panel by clicking on the
symbol.
Only for experts.