Difference between revisions of "How to Set EDTM Frequency with the DVCS Pulser"
(22 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
The EDTM (electronic dead-time monitor) is controlled via a DVCS pulser in the bbhodo crate. This pulser creates a pulse, normally 20 Hz, that is injected into the trigger decision logic of BB and HCal coming from their summing modules. This will create a signal that looks like a real trigger, however there will be no useful data associated as the trigger is simply from a pulser. To distinguish these fake events in later analysis copies of the EDTM pulser are sent into F1TDCs of both BB and HCal. So, if an event in either detector has signal in the F1TDC channel that contains a copy of the EDTM pulser we know that this was an EDTM event and not a real physics trigger. We can then find the electronics dead-time, coupled with the DAQ dead-time still, by comparing the number of EDTM events BB and HCal saw versus the number of EDTM pulses in a scaler. | The EDTM (electronic dead-time monitor) is controlled via a DVCS pulser in the bbhodo crate. This pulser creates a pulse, normally 20 Hz, that is injected into the trigger decision logic of BB and HCal coming from their summing modules. This will create a signal that looks like a real trigger, however there will be no useful data associated as the trigger is simply from a pulser. To distinguish these fake events in later analysis copies of the EDTM pulser are sent into F1TDCs of both BB and HCal. So, if an event in either detector has signal in the F1TDC channel that contains a copy of the EDTM pulser we know that this was an EDTM event and not a real physics trigger. We can then find the electronics dead-time, coupled with the DAQ dead-time still, by comparing the number of EDTM events BB and HCal saw versus the number of EDTM pulses in a scaler. | ||
− | + | Controlling by GUI: | |
+ | *Log on to sbs-onl@adaq1 and navigate to the /adaqfs/home/sbs-onl/bbhodo/pulser directory with the usual sbs-onl password. | ||
+ | *The REMEX_CMSG_HOST and REMEX_CMSG_PASSWORD are set inside the GUI, so there should be no need to set them yourself. | ||
+ | *Execute: python3 LED_Control_GUI.py | ||
+ | *Window will pop up: | ||
+ | **Need to click Load and Initialize buttons. It initializes with outputs disabled. | ||
+ | **To enable the DVCS at 20Hz : Click on "Enable and Set Freq to 20Hz" button. | ||
+ | **To disable the DVCS : Click on Disable button. | ||
+ | **To see status: Click on Status button | ||
+ | **The output from the commands will be printed to the xterm. | ||
+ | **Click "Close" to exit. | ||
+ | If the GUi does not work then you can do the commands from the terminal prompt as described below. | ||
+ | |||
+ | Controlling the EDTM DVCS Pulser: | ||
#Log on to sbs-onl@adaq1 and navigate to the /adaqfs/home/sbs-onl/bbhodo/ directory with the usual sbs-onl password. | #Log on to sbs-onl@adaq1 and navigate to the /adaqfs/home/sbs-onl/bbhodo/ directory with the usual sbs-onl password. | ||
#Make sure the environment is setup correctly. echo $REMEX_CMSG_HOST should return adaq2 and echo $REMEX_CMSG_PASSWORD should return SBSDAQ. If either are not correct run the following (default $REMEX_CMSG_HOST currently returns 'tedbbdaq' which needs to be changed). | #Make sure the environment is setup correctly. echo $REMEX_CMSG_HOST should return adaq2 and echo $REMEX_CMSG_PASSWORD should return SBSDAQ. If either are not correct run the following (default $REMEX_CMSG_HOST currently returns 'tedbbdaq' which needs to be changed). | ||
− | + | #*export REMEX_CMSG_HOST=adaq2 | |
− | + | #*export REMEX_CMSG_PASSWORD=SBSDAQ | |
− | # | + | #Use remex to give commands to bbhodoROC5. |
#Load the DVCS pulser library. | #Load the DVCS pulser library. | ||
− | + | #*remex -d bbhodoROC5 linuxvme/dvcsPulser/libdvcsPulser.so | |
#Initialize the DVCS pulser. The first argument is the address of the pulser. Note: initializing the pulser will turn its output off if you wish to disable the pulser. | #Initialize the DVCS pulser. The first argument is the address of the pulser. Note: initializing the pulser will turn its output off if you wish to disable the pulser. | ||
− | + | #*remex bbhodoROC5 'dvcsPulserInit(0x1300,0)' | |
#Enable the pulser output. | #Enable the pulser output. | ||
− | + | #*remex bbhodoROC5 'dvcsPulserEnable(0x1d)' | |
+ | #Disable the pulser output. | ||
+ | #*remex bbhodoROC5 'dvcsPulserDisable(0x1d)' | ||
#Set the pulser frequency to one of the following rates given in Hz: 1, 2, 5, 10, 20, 50, 100, 200, 500, 1000, 2000, 5000, 10000, 20000, 50000, 100000, where the argument is the frequency. | #Set the pulser frequency to one of the following rates given in Hz: 1, 2, 5, 10, 20, 50, 100, 200, 500, 1000, 2000, 5000, 10000, 20000, 50000, 100000, where the argument is the frequency. | ||
− | + | #*remex bbhodoROC5 'dvcsPulserSetFrequency(20)' | |
− | + | ||
− | + | ||
− | + | ||
− | + |
Latest revision as of 09:42, 15 October 2021
The EDTM (electronic dead-time monitor) is controlled via a DVCS pulser in the bbhodo crate. This pulser creates a pulse, normally 20 Hz, that is injected into the trigger decision logic of BB and HCal coming from their summing modules. This will create a signal that looks like a real trigger, however there will be no useful data associated as the trigger is simply from a pulser. To distinguish these fake events in later analysis copies of the EDTM pulser are sent into F1TDCs of both BB and HCal. So, if an event in either detector has signal in the F1TDC channel that contains a copy of the EDTM pulser we know that this was an EDTM event and not a real physics trigger. We can then find the electronics dead-time, coupled with the DAQ dead-time still, by comparing the number of EDTM events BB and HCal saw versus the number of EDTM pulses in a scaler.
Controlling by GUI:
- Log on to sbs-onl@adaq1 and navigate to the /adaqfs/home/sbs-onl/bbhodo/pulser directory with the usual sbs-onl password.
- The REMEX_CMSG_HOST and REMEX_CMSG_PASSWORD are set inside the GUI, so there should be no need to set them yourself.
- Execute: python3 LED_Control_GUI.py
- Window will pop up:
- Need to click Load and Initialize buttons. It initializes with outputs disabled.
- To enable the DVCS at 20Hz : Click on "Enable and Set Freq to 20Hz" button.
- To disable the DVCS : Click on Disable button.
- To see status: Click on Status button
- The output from the commands will be printed to the xterm.
- Click "Close" to exit.
If the GUi does not work then you can do the commands from the terminal prompt as described below.
Controlling the EDTM DVCS Pulser:
- Log on to sbs-onl@adaq1 and navigate to the /adaqfs/home/sbs-onl/bbhodo/ directory with the usual sbs-onl password.
- Make sure the environment is setup correctly. echo $REMEX_CMSG_HOST should return adaq2 and echo $REMEX_CMSG_PASSWORD should return SBSDAQ. If either are not correct run the following (default $REMEX_CMSG_HOST currently returns 'tedbbdaq' which needs to be changed).
- export REMEX_CMSG_HOST=adaq2
- export REMEX_CMSG_PASSWORD=SBSDAQ
- Use remex to give commands to bbhodoROC5.
- Load the DVCS pulser library.
- remex -d bbhodoROC5 linuxvme/dvcsPulser/libdvcsPulser.so
- Initialize the DVCS pulser. The first argument is the address of the pulser. Note: initializing the pulser will turn its output off if you wish to disable the pulser.
- remex bbhodoROC5 'dvcsPulserInit(0x1300,0)'
- Enable the pulser output.
- remex bbhodoROC5 'dvcsPulserEnable(0x1d)'
- Disable the pulser output.
- remex bbhodoROC5 'dvcsPulserDisable(0x1d)'
- Set the pulser frequency to one of the following rates given in Hz: 1, 2, 5, 10, 20, 50, 100, 200, 500, 1000, 2000, 5000, 10000, 20000, 50000, 100000, where the argument is the frequency.
- remex bbhodoROC5 'dvcsPulserSetFrequency(20)'