Difference between revisions of "Hall C DAQ"
(→Setup) |
|||
Line 39: | Line 39: | ||
===== Switching Back to Single Arm ===== | ===== Switching Back to Single Arm ===== | ||
% kcoda | % kcoda | ||
− | % | + | % go_COIN_DAQ_Disable |
You will be prompted to reboot/power-cycle the HMS crates. Do so following | You will be prompted to reboot/power-cycle the HMS crates. Do so following | ||
[[Hall_C_DAQ#If_you_need_to_reboot_a_ROC]]. Then restart the DAQ in the SHMS DAQ session: | [[Hall_C_DAQ#If_you_need_to_reboot_a_ROC]]. Then restart the DAQ in the SHMS DAQ session: |
Revision as of 19:17, 17 January 2018
How to bring up the DAQ
The DAQs run inside their own VNC sessions. They can be brought up on any of the Hall C Counting House machines by running these commands logged in as the 'cdaq' user:
SHMS Single Arm
% go_shms_daq
- The following run parameters should be the defaults for SHMS single arm running:
- Expid: SHMS
- Session: SHMS
- Configuration: SHMS_all
HMS Single Arm
% go_hms_daq
- The following run parameters should be the defaults for SHMS single arm running:
- Expid: HMS
- Session: HMS
- Configuration: SHMS_all
COINCIDENCE Mode
Setup
Coincidence mode basically adds the HMS crates to the SHMS DAQ. You should first shut down both single arm DAQs
% kcoda # In SHMS DAQ session % kcoda # In HMS DAQ session
Then switch to COIN mode in the SHMS DAQ session, and start CODA
% go_COIN_DAQ_Enable
You will be prompted to reboot/power-cycle the HMS crates. Do so following Hall_C_DAQ#If_you_need_to_reboot_a_ROC. Then restart the DAQ in the SHMS DAQ session:
% startcoda
You should see more terminals pop up on the right associated with the additional DAQ components.
Connect to the Platform as usual, then switch the Session to COIN_all in the Run Control GUI using the Configurations:Sessions menu item.
- The following run parameters should be the defaults for SHMS+HMS coincidence running:
- Expid: SHMS
- Session: SHMS
- Configuration: COIN_all
Switching Back to Single Arm
% kcoda % go_COIN_DAQ_Disable
You will be prompted to reboot/power-cycle the HMS crates. Do so following Hall_C_DAQ#If_you_need_to_reboot_a_ROC. Then restart the DAQ in the SHMS DAQ session:
% startcoda
You should see more terminals pop up on the right associated with the additional DAQ components.
Start up the single Arm DAQs as usual.
If the system is being fussy. Reboot ALL of the crates following Hall_C_DAQ#If_you_need_to_reboot_a_ROC. Then try startcoda again.
How to kill/reset/restart the DAQ
If you are connected to the appropriate DAQ vncsession
If you are connected to the appropriate DAQ vncsession (see above), and CODA has hung, or gotten into a funny state, then bring the terminal window at lower left to the foreground and type the following:
% kcoda
Wait for a bit (10 sec). Most of the coda windows should disappear. (The VxWorks ROC consoles may stay up.). Then restart coda by typing this in the same terminal:
% startcoda
- Make an hclog when you do this!
If everything disappeared and 'go_shms_daq/go_hms_daq' doesn't work
If everything disappeared and 'go_shms_daq/go_hms_daq' doesn't work then you can bring things up from scratch outside the VNC session.
SHMS
% ssh coda@cdaql4
In that terminal, run:
% startcoda
HMS
% ssh coda@cdaql5
In that terminal, run:
% startcoda
- Make an hclog when you do this!
If you need to reboot a ROC
SHMS
The SHMS has four ROCs. You can contact their crates with these links using a browser from the cdaq account
- ROC02 (Counting House Electronics Room)
- ROC04 (SHMS Electronics Hut)
- ROC06 (SHMS Electronics Hut)
- ROC08 (Counting House Electronics Room)
Reboot them by clicking on the link, and cycling the power. Wait for 10s after clicking the 'power' button before clicking it again. The page will automatically refresh when it is ready.
If a ROC console does not show up for you, then run kcoda; wait for 3 minutes; then startcoda. If that doesn't work, call an Expert.
- Make an hclog when you do this!
HMS
The HMS has two ROCs. You can contact their crates with these links:
- ROC01 (Counting House Electronics Room)
- ROC03 (SHMS Electronics Hut)
- ROC05 (Counting House Electronics Room) --- On APC switch. See note below.
The first two work the same as the SHMS crates.
ROC5/hccrate05 is on an APC switch. Pick the 'Outlet Status' Tab; click on On to the left of hccrate05 on Outlet 1. Set the Control Action to Reboot Delayed, click the checkbox to the left of hccrate05, then click the Next>> button and click Apply on the next screen. If you know where hccrate05 is in the Counting House Electronics Room, you can power cycle it with the switch on the front panel. Turn it off, wait 5 seconds, and turn it back on.
If a ROC console does not show up for you, then run kcoda; wait for 3 minutes; then startcoda. If that doesn't work, call an Expert.
- Make an hclog when you do this!
Live Time Display
If it isn't showing up (ie. after a kcoda/startcoda) then:
- Click on 'TS0x' in component list under 'Name' column on left of rcGUI
- Select Options:Chart:Add
- Seelct 'Live Time' tab
Setting Prescales
Run the prescale GUI using one of these commands from a terminal in the SHMS or HMS DAQ session:
% go_prescales_SHMS -- OR -- go_prescales_HMS
How to pick a prescale value
The relationship between the prescale setting and the actual prescale value is somewhat complicated. You can click on the 'Help' button for details.
- The best way to do it is to type in the prescaled rate you want into the Target Rate field and hit return. The Prescaled Rate field will update to show you the rate the DAQ will be accepting.
- You can try adding or subtracting '1' to the 'Value' field if you want to try to tweak the Prescaled Rate a bit.
NOTE: You MUST hit SAVE *before* starting the run!