Difference between revisions of "CODA"

From Tritium Experiments Group
Jump to navigation Jump to search
 
(38 intermediate revisions by 8 users not shown)
Line 1: Line 1:
 +
[https://wiki.jlab.org/tegwiki/index.php/Main_Page <B>Back to Tritium-Main</B>] [https://wiki.jlab.org/tegwiki/index.php/How-To_and_Shift_Info <B>Back to How to</B>] [https://wiki.jlab.org/tegwiki/index.php/Third <B> Back to Third Person</B>]
 +
 +
[[complete guide|Direct link to the entire repository of information.]]
 +
==Opening the Prescale GUI==
 +
 +
*Open a terminal on adaq1 or adaq2
 +
**For the left arm prescales type "prescaleL"
 +
**For the right arm prescales type "prescaleR"
 +
**If you are not at the adaq1 computer, you must terminal into the adaq1 machine.
 +
**Type "ssh -Y adaq@adaq1" , use the password for adaq. Please ask for the password if you do not know it.
 +
*After editing the prescale values you MUST click the save button or they will not apply.
 +
 
==Start CODA==
 
==Start CODA==
Open a terminal and type startcoda.
+
===single arm setup===
 +
 
 +
*Running CODA for LHRS open a terminal on adaq1 and type "startcoda".
 +
**If you are not at the adaq1 computer, you must terminal into the adaq1 machine.
 +
**Type "ssh -Y adaq@adaq1" , use the password for adaq. Please ask for the password if you do not know it.
 +
 
 +
*Running CODA for RHRS open a terminal on adaq2 and type "startcoda".
 +
**If you are not at the adaq2 computer, you must terminal into the adaq2 machine.
 +
**Type "ssh -Y adaq@adaq2" , use the password for adaq. Please ask for the password if you do not know it.
 +
 
 +
===e'p coincidence setup===
 +
 
 +
*Running CODA for RHRS open a terminal on adaq2 and type "startcoda coinc".
 +
**If you are not at the adaq2 computer, you must terminal into the adaq2 machine.
 +
**Type "ssh -Y adaq@adaq2" , use the password for adaq. Please ask for the password if you do not know it.  
  
 
The runcontrol window will appear:
 
The runcontrol window will appear:
 
[[File:startcoda.png]]
 
[[File:startcoda.png]]
  
Hit the "Connect" button, then "Configure" (choose a configuration e.g. LeftHrs), and "Start Run", or, to troubleshoot, "Download", "Prestart", and "Go".
+
Hit the "Platform" tab, followed by the "Connect" button. Under the Configurations tab, press Cool and choose the configuration desired (for e'p experiment, select RHRSTwoArm). Then hit "Configure" (the wrench icon) and Download (floppy icon), and finally "Start Run", or, to troubleshoot, "Download", "Prestart", and "Go".
 +
 
 +
==Starting CODA from Scratch==
 +
* If you need to troubleshoot CODA follow this link for [https://wiki.jlab.org/tegwiki/index.php/Coda_expert How To's]
  
==Setting prescale factor for the HRS only (updated 11/03)==
+
===for CODA DP Communication Error===
    For Left HRS:
 
  *  log in as adaq on adaq1 machine
 
  *  type "prescaleL &" to open the GUI
 
  *  set the desired prescale factors and click "Save" and Exit
 
  
    For Right HRS:
+
'''if ROC20:'''
  *   log in as "adaq" on "adaq2" machine
+
*in a new terminal:
  *   type "prescaleR &" to open the GUI
+
**$ ssh -X intelha3
  *   set the desired prescale factors and click "Save" and Exit
+
**$ ./startroc_coincidence20.sh
 +
*try to configure CODA (it will fail with a "disconnected" error)
 +
*Ctrl-C in the terminal
 +
*again:
 +
**$ ./startroc_coincidence20.sh
 +
*CODA should say "roc20 | Client is Back"
  
    Definition of triggers:(Proposed for Argon- 02/07/17)
+
'''if ROC31:'''
        T1 = L-arm s0 && s2 && Shower
+
*in a new terminal:
        T2 = L-arm (s0 || s2) && (Cherenov||Shower)
+
**$ ssh -X halladaq8
        T3 = R-arm s0 && s2
+
**$ ./startroc_coincidence31.sh asdf
        T4 = R-arm (s0 || s2) && !(Cherenov||Shower)
+
*try to configure CODA (it will fail with a "disconnected" error)
        T5 = T1 && T3
+
*Ctrl-C in the terminal
        T6 = T2 && T4
+
*again:
        T7 = L-arm EDTM trigger
+
**$ ./startroc_coincidence31.sh asdf
        T8 = 103.7 kHz pulser (for LHRS), 1.024 kHz (for RHRS)
+
*CODA should say "roc31 | Client is Back"
        T9 =
 
  
===Starting xscaler (HRS) and checking raw trigger rates (updated nov 5, 2014)===
 
  
Raw rates of trigger and detector channels can be accessed using a GUI. Below are the instructions for opening '''"xscaler"''' GUI
+
===Reboot ROCs===
* These screens are generally already open on the '''agen5''' machine (above the DAQ machine)
 
  
* If it is xscaler is not open then follow these instructions:
+
If a ROC fails to configure or download, see if the ROC window is still visible.
** login as '''a-onl''' on '''adaq1''' or '''adaq2''' machines (eg: "'''ssh a-onl@adaq1'''" )
 
** passwords are written on the white board
 
** type "'''goxscaler'''" and follow the instructions printed on the screen
 
** type "'''./xscaler Left'''" or "'''./xscaler Right'''" to access xscaler display
 
  
 +
--For VXWORKS ROCs
 +
*LHRS : ROC3, ROC4, ROC5, TS11
 +
*RHRS : ROC1, ROC2, ROC6, TS0
 +
#click in the terminal
 +
#press enter to get a prompt ("->")
 +
#type "reboot", hit enter, and wait
 +
#the ROC will reboot and reconnect to CODA
  
===How to download and check the LHRS MLU trigger (updated 11/05)===
+
<s>If the ROC window cannot be seen, do the following:</s>
  Consult the MLU information off the main Hall A
 
[https://hallaweb.jlab.org/wiki/index.php/Main_Page#Trigger_MLU wiki page].
 
  
 +
--if the ROC is either ROC31 or ROC20
 +
*ROC31 is on LHRS : In a terminal on adaq@adaq1, type 'kcoda'
 +
*ROC20 is on RHRS : In a terminal on adaq@adaq2, type 'kcoda'
 +
{|border="1"
 +
!Arm!!ROC!!Port Server!! Port !! command
 +
|-
 +
||LHRS||ROC31||hatsv4|| 4 || telnet hatsv4 2004
 +
|-
 +
||RHRS||ROC20||hatsv3||7  || telnet hatsv3 2007
 +
|}
  
=== How to check the dead time  ===
+
#Telnet to the port connected to the ROC you need to service (e.g. telnet hatsv21 2002). ROC31 is on hatsv4 port 4 (2004), ROC20 is on hatsv3 port 7 (2007)
last update 12/2/14<br>
+
#Type 'q'
'''"Needs to be updated"'''
+
#Type 'CAEN'. (Nothing will display on screen at you type.)
There are two ways to check for deadtime:
+
#A menu with options to control the Crate will appear. Type 'C' to view the status of the crate.
* online using the XScaler tool.<br>
+
#If the crate is off, type the letter 'o' to turn it on.
**See above for instructions on how-to open the Xscaler.  
+
*(If the crate is ON but is stuck and needs rebooted : type "o" to turn crate OFF. After 20 seconds, type "o" to turn it back ON)
**Select the "misc" tab.
+
#Type the letter 'q' twice to leave the crate control.
** the ratio (DVCS_stop/DVCS_masterOR) is a measurement of the live time for our main trigger.
+
#Type 'ctrl+]' to exit the ROC.
 +
#Type 'q' at the "telnet>" prompt.
 +
#Start CODA
  
* offline. This solution allows to check deadtime for individual triggers (say DIS or DVCS, ...)<br>
+
*if telnet responds with "Connection Refused"
After you replay the run, ssh to aonl1, aonl2, aonl3 or aonl4 machine and:
+
#telnet to the portserver itself (e.g. telnet hatsv4)
<pre>
+
#username: root
> godvcs
+
#password: see "For Bodgan" paper
> cd marco/deadtime/
+
#type "kill tty=n", where 'n' is the port number (e.g. for 2004, n=4)
> analyzer
+
#'^]' to close telnet
> .L deadtime.C
+
#try to telnet to the port again (e.g. telnet hatsv4 2004)
> deadtime(NNNNN)
 
</pre>
 

Latest revision as of 12:55, 16 November 2018

Back to Tritium-Main Back to How to Back to Third Person

Direct link to the entire repository of information.

Opening the Prescale GUI

  • Open a terminal on adaq1 or adaq2
    • For the left arm prescales type "prescaleL"
    • For the right arm prescales type "prescaleR"
    • If you are not at the adaq1 computer, you must terminal into the adaq1 machine.
    • Type "ssh -Y adaq@adaq1" , use the password for adaq. Please ask for the password if you do not know it.
  • After editing the prescale values you MUST click the save button or they will not apply.

Start CODA

single arm setup

  • Running CODA for LHRS open a terminal on adaq1 and type "startcoda".
    • If you are not at the adaq1 computer, you must terminal into the adaq1 machine.
    • Type "ssh -Y adaq@adaq1" , use the password for adaq. Please ask for the password if you do not know it.
  • Running CODA for RHRS open a terminal on adaq2 and type "startcoda".
    • If you are not at the adaq2 computer, you must terminal into the adaq2 machine.
    • Type "ssh -Y adaq@adaq2" , use the password for adaq. Please ask for the password if you do not know it.

e'p coincidence setup

  • Running CODA for RHRS open a terminal on adaq2 and type "startcoda coinc".
    • If you are not at the adaq2 computer, you must terminal into the adaq2 machine.
    • Type "ssh -Y adaq@adaq2" , use the password for adaq. Please ask for the password if you do not know it.

The runcontrol window will appear: File:Startcoda.png

Hit the "Platform" tab, followed by the "Connect" button. Under the Configurations tab, press Cool and choose the configuration desired (for e'p experiment, select RHRSTwoArm). Then hit "Configure" (the wrench icon) and Download (floppy icon), and finally "Start Run", or, to troubleshoot, "Download", "Prestart", and "Go".

Starting CODA from Scratch

  • If you need to troubleshoot CODA follow this link for How To's

for CODA DP Communication Error

if ROC20:

  • in a new terminal:
    • $ ssh -X intelha3
    • $ ./startroc_coincidence20.sh
  • try to configure CODA (it will fail with a "disconnected" error)
  • Ctrl-C in the terminal
  • again:
    • $ ./startroc_coincidence20.sh
  • CODA should say "roc20 | Client is Back"

if ROC31:

  • in a new terminal:
    • $ ssh -X halladaq8
    • $ ./startroc_coincidence31.sh asdf
  • try to configure CODA (it will fail with a "disconnected" error)
  • Ctrl-C in the terminal
  • again:
    • $ ./startroc_coincidence31.sh asdf
  • CODA should say "roc31 | Client is Back"


Reboot ROCs

If a ROC fails to configure or download, see if the ROC window is still visible.

--For VXWORKS ROCs

  • LHRS : ROC3, ROC4, ROC5, TS11
  • RHRS : ROC1, ROC2, ROC6, TS0
  1. click in the terminal
  2. press enter to get a prompt ("->")
  3. type "reboot", hit enter, and wait
  4. the ROC will reboot and reconnect to CODA

If the ROC window cannot be seen, do the following:

--if the ROC is either ROC31 or ROC20

  • ROC31 is on LHRS : In a terminal on adaq@adaq1, type 'kcoda'
  • ROC20 is on RHRS : In a terminal on adaq@adaq2, type 'kcoda'
Arm ROC Port Server Port command
LHRS ROC31 hatsv4 4 telnet hatsv4 2004
RHRS ROC20 hatsv3 7 telnet hatsv3 2007
  1. Telnet to the port connected to the ROC you need to service (e.g. telnet hatsv21 2002). ROC31 is on hatsv4 port 4 (2004), ROC20 is on hatsv3 port 7 (2007)
  2. Type 'q'
  3. Type 'CAEN'. (Nothing will display on screen at you type.)
  4. A menu with options to control the Crate will appear. Type 'C' to view the status of the crate.
  5. If the crate is off, type the letter 'o' to turn it on.
  • (If the crate is ON but is stuck and needs rebooted : type "o" to turn crate OFF. After 20 seconds, type "o" to turn it back ON)
  1. Type the letter 'q' twice to leave the crate control.
  2. Type 'ctrl+]' to exit the ROC.
  3. Type 'q' at the "telnet>" prompt.
  4. Start CODA
  • if telnet responds with "Connection Refused"
  1. telnet to the portserver itself (e.g. telnet hatsv4)
  2. username: root
  3. password: see "For Bodgan" paper
  4. type "kill tty=n", where 'n' is the port number (e.g. for 2004, n=4)
  5. '^]' to close telnet
  6. try to telnet to the port again (e.g. telnet hatsv4 2004)