Running   CODA   on   Spectrometer   DAQ   Systems


Robert Michaels, rom@jlab.org, Jefferson Lab Hall A, updated Feb 9, 2009

This file: hallaweb.jlab.org/equipment/daq/guide2_2daq.html


I.   NORMAL   DAQ   OPERATIONS

This assumes that runcontrol is running.   If not, see Cold Start in section III.

Attributes of the Two DAQ Setups
                   Attribute                                                                                                      
   System being read out     Bigbite   DAQ   (or both HRS if 1-daq).      Left   HRS   (if 2-daq mode)  
  Computer where to run           adaql2            adaql1  
  Account from which to run          a-onl           adev
  ROCs involved   TS12, ROC5, ROC8, ROC9, ROC10 (2-daq)   (+ L-HRS if 1-daq)    TS11, ROC3, ROC4
   Disk areas for data   /adaql2/dataN,   N=1,2,3,4   /adaql1/dataN,   N=1,2,3,4
  Run numbers   sequence below 20,000  numbers > 20,000
  Prescale factors   ~a-onl/prescale/prescale.dat   ~adev/prescale/prescale.dat
  Deadtime and Disk monitor    datamon (from a-onl)    datamon (from adev)
  runcontrol configuration   "bigbite"   ("TWOARM_FB" for coincidences, i.e. 1-daq)     LeftHrs
  runcontrol config for pedestals  N/A     pedrun  
 Location of pedestal files ~a-onl/ped/ped*.dat ~adev/ped/ped*.dat
 Location of scaler_history.dat   ~a-onl/scaler/   ~adev/scaler/



II.  FREQUENTLY   ASKED   QUESTIONS

          It takes a couple hours for files to appear in MSS, and the files remain on adaq disk for typically 2 or 3 days.


III.  REBOOTING STUFF

HOW TO SHUTDOWN or REBOOT WORKSTATIONS

Rarely, the workstations don't function properly and the simplest way out is to reboot. Ole usually keeps some instructions posted near the PC terminal.   One may hit Ctrl-Alt-F1 to go to console mode, then Ctrl-Alt-Del.   If you have trouble starting X, type "startxfce4".

QUICK   RESETS

Problems with CODA can usually be solved with a simple reset or with a Cold Start. Call Bob Michaels, Vince Sulkosky, or Alexandre Camsonne for DAQ problems. Do NOT waste an hour stuck on resets.

If a ROC seems to be hung up, you can reboot it by going to the workspace with all the small x-terms logged into the frontend computers and typing "reboot" at the vxWorks prompt (-> reboot). Wait 2 minutes and telnet back in to verify its alive. The name of the ROC computer is normally written in the name of the xterm (hallasfi1, hallasfi2, etc). You need to know what subset of these computers are used for your configuration, see the table in section V below. If the ROC seems really frozen, use the "Crate Resets" button in the magnet EPICS screen on hacsbc2 (controls computer). Note, both fastbus crates in one arm are reset with one button.   To reset from the EPICS GUI, toggle the state of the button. Note, if a ROC cannot be reset via the GUI, they can only be reset by typing "reboot" at the vxWorks prompt. Another possibility is to type "ctrl-X" at the vxWorks prompt; this sometimes works when typing reboot does not work. Finally, if the above does not work one can gain access to the cpu and press the reset button (or power cycle the crate). If you don't know how, or don't know where the cpu is located, page Bob Michaels or Alexandre Camsonne.

If you reboot the ROC, or if something on the workstation is hung up, try pushing the "Reset" button in runcontrol. Then Configure, Download, and StartRun as usual.

If a ``quick'' reset doesn't work, try a Cold Start (see below).

COLD   START

To perform a cold start of the processes on the Linux computer (adaql1 or l2), simply type "startcoda" on the a-onl(adev) account. This performs a "kcoda" for you, as well as starts all the components you need.

Before downloading, it is first a good idea to make sure the fastbus and VME crates (i.e. the ROCs) are running. One finds that when resetting, one can frequently avoid rebooting the frontend crates, and just restart runcontrol, but if you must: Press the reset buttons for the relevant subset of crates as explained in the Reset section above. A convenient way to reset (reboot) the ROCs is to go to the adaql2 workspace with x-terms logged into each frontend computer and enter "reboot" at the vxWorks prompt -> of each ROC. But one can also use the EPICS GUI as explained above. After a few minutes, telnet back in and verify they are up. Some of the crates take longer than others to reboot. Be patient. To start everything on the workstation, type "startcoda" as explained above. Eventually runcontrol will pop up. In runcontrol press the Connect button. After "connect", wait 10 seconds, then press "Run Type"; a dialog box pops up and you must choose the configuration you want, which is normally the first choice. Then press download and wait about 30 seconds. If download hangs up, press "Cancel", "Reset", and "Download" in runcontrol. After a successful download, you can "Start Run" to start a run.

If you ever logout of the DAQ computer adaql1 or adaql2 or have rebooted it, here is how to restart the preferred setup. Login as "adev" ("a-onl") for adaql1 (adaql2). See table above for attributes of the two DAQs available (different accounts, etc). Emacs the prescale file in the background: "emacs ~/prescale/prescale.dat &"   Also start datamon by typing "datamon".   Next, in the "components" workspace, login to all the frontend computers by typing "telnet hallasfi1" where the name of the computer like hallasfi1 is in the name of the xterm window. Also in the name of these xterms is the portserver port where you can connect via RS232 (portserver instructions are at hallaweb.jlab.org/equipment/daq/portserver.html). So, an example name may be an xterm with title "ROC2--hallasfi2--hatsv3-port-8" meaning ROC2 is IP address hallasfi2 and on portserver hatsv3 at port 8.   Note: If these xterm windows for components are not there, type "setupxterms" to bring them up.


V.   Spectrometer 2-DAQ Configuration

        CODA Configrations 

        LeftHrs -- DAQ on Left HRS (adev acct, adaql1 computer)
        bigbite -- DAQ on Bigbite (a-onl acct, adaql2 computer)


DAQ crates     (accurate as of May, 2008)
  ROC       Description      IP Address   Portserver
  ROC3     L-arm Lower Fastbus Crate   hallasfi3     hatsv4 port 2  
  ROC4     L-arm Upper Fastbus Crate   hallasfi4     hatsv4 port 3  
  TS11     L-arm VME/Scaler   hallavme4     hatsv4 port 7  
  ROC5     Bigbite VME   bbvme1     bbps2 port 5  
  ROC8     Bigbite fastbus   bbsfi1     bbps2 port 1  
  ROC9     Bigbite fastbus   bbsfi2     bbps2 port 2  
  ROC10     Bigbite fastbus   bbsfi3     bbps2 port 3  
  TS12     Bigbite Trig. Super.   bbts1     bbps2 port 6  

VI.   THINGS THAT GO WRONG WITH DAQ or COMPUTERS


VI.   More info

More info: hallaweb.jlab.org/equipment/daq/guide_2daq.html   and   hallaweb.jlab.org/equipment/daq/daq_trig.html.


This page maintained by Robert Michaels   rom@jlab.org