Difference between revisions of "CODA"

From Tritium Experiments Group
Jump to navigation Jump to search
 
(29 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]
+
[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.
+
[[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==
 +
===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===
  
==Start CODA==
+
*Running CODA for RHRS open a terminal on adaq2 and type "startcoda coinc".
Open a terminal 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.  
  
 
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==
+
==Starting CODA from Scratch==
''You do not need to do this routinely - only if you are starting from a fresh login or after a computer crash.''
+
* If you need to troubleshoot CODA follow this link for [https://wiki.jlab.org/tegwiki/index.php/Coda_expert How To's]
Log in a a-onl account on adaql2 ( check with Run Coordinator in case you don't know the password )
 
  
(Contact: Bob Michaels)
+
===for CODA DP Communication Error===
===Power cycling Fastbus crates===
 
Right HRS only : go in Tools screen -> Crate Resets -> Lower Fastbus AC
 
  
This will power cycle all 3 ROCs of the fastbus
+
'''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"
  
Same for Left HRS but it will get stuck off. To get the Fastbus back on login into hareboot2 from an accelerator account or hlal00 and power cycle iocha4 which is on port 1
+
'''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 crates===
 
On one workspace you will see six xterms with names of the crates in
 
the title, e.g. "ROC4--hallasfi4--hatsv40-port6".
 
From each of the six xterms, you should telnet into the appropriate RS232 interface, e.g. for the above, "telnet hatsv40 2006" (if the prompt in the xterm is "<code>-></code>", it is already connected). The "hallasfi4" is the internet name of the crate's cpu.
 
  
If the xterms are missing, type "setupxterms".
+
===Reboot ROCs===
  
From these xterms, you reboot by typing "ctrl-X".  Yes, you hold down
+
If a ROC fails to configure or download, see if the ROC window is still visible.
the Ctrl key, then hit X.  You can also type reboot but "ctrl-X" is
 
better.  You can also reboot from the crate resets GUI on HA Tools.
 
  
To power cycle the DVCS crates, type crateOff in a terminal in logged as a-onl and after crateON to turn both ROC17 and ROC18 back on.
+
--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
  
For full details about the Hall A DAQ (including reboot procedures) see [http://hallaweb.jlab.org/equipment/daq/guide.html This] or [http://hallaweb.jlab.org/equipment/daq/guide2.html This]
+
<s>If the ROC window cannot be seen, do the following:</s>
  
===If you have trouble downloading to ROC31===
+
--if the ROC is either ROC31 or ROC20
If ROC31 (or one of the other Intel CPU crates) gives errors in the "Configure" or "Download" steps, first try the following:
+
*ROC31 is on LHRS : In a terminal on adaq@adaq1, type 'kcoda'
#  In RunControl, select the "Release Components" option under the "Platform" menu from the top menu bar.
+
*ROC20 is on RHRS : In a terminal on adaq@adaq2, type 'kcoda'
In a terminal on adaq1, run the command "killdvcsrocs"
+
{|border="1"
In a terminal on adaq1, run the command "dvcsrocs".  Terminal windows for ROCs 27-31 should appear.
+
!Arm!!ROC!!Port Server!! Port !! command
#  Select the "Configurations/Cool" menu, and select the proper run type (as of 22Oct2016, it should be '''LHRSBuf''').
 
#  Now try to configure and download.
 
#  If it fails to configure or download again, try this once again, but do "kcoda" and "startcoda" instead of the "killdvcsrocs" and "dvcsrocs".
 
#  If still fails, try rebooting ROC31 as described below and call P.King (number on whiteboard).<br />''Note that if you reboot ROC31, the EDTM system will need to be restarted.''
 
 
 
--a remote power switch is installed on DVCS rack mostly for the trigger and VME trigger crate
 
 
 
port assignement can be found at https://logbooks.jlab.org/entry/3304858
 
{| border="1"
 
!Port!!Device
 
 
|-
 
|-
||1||trigger crate
+
||LHRS||ROC31||hatsv4|| 4 || telnet hatsv4 2004
 
|-
 
|-
||2||trigger
+
||RHRS||ROC20||hatsv3||7 || telnet hatsv3 2007
|-
 
||3||nim crate1
 
|-
 
|6||portserver
 
|-
 
|7||network switch
 
|-
 
|8||Fan
 
 
|}
 
|}
You can telnet or use a web browser to access hareboot30 ( make sure proxy is off if you use a web browser )
 
 
 
 
==Setting prescale factor for the HRS only (updated 11/03)==
 
    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:
 
  *  log in as "adaq" on "adaq2" machine
 
  *  type "prescaleR &" to open the GUI
 
  *  set the desired prescale factors and click "Save" and Exit
 
 
    Definition of triggers:(Proposed for Argon- 02/07/17)
 
        T1 = L-arm s0 && s2 && Shower
 
        T2 = L-arm (s0 || s2) && (Cherenov||Shower)
 
        T3 = R-arm s0 && s2
 
        T4 = R-arm (s0 || s2) && !(Cherenov||Shower)
 
        T5 = T1 && T3
 
        T6 = T2 && T4
 
        T7 = L-arm EDTM trigger
 
        T8 = 103.7 kHz pulser (for LHRS), 1.024 kHz (for RHRS)
 
        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
 
* 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:
 
** 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
 
 
 
===How to download and check the LHRS MLU trigger (updated 11/05)===
 
Consult the MLU information of the main Hall A [https://hallaweb.jlab.org/wiki/index.php/Main_Page#Trigger_MLU wiki page].
 
  
=== How to check the dead time  === <B> //////////////Not correct!!!.
+
#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> </B>
+
#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)