Running   CODA 2.6   on   R-HRS  


Robert Michaels, rom@jlab.org, Jefferson Lab Hall A, updated Sept 19, 2008

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


CODA 2.6 is new, but experienced users probably won't notice much difference.   Make sure you are on the right account and computer, to not interfere with Transversity !!
I.   NORMAL   DAQ   OPERATIONS

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


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 2.6 can usually be solved with a simple reset or with a Cold Start. Call Bob Michaels 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.

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), simply type "startcoda" on the adev account. This performs a "kcoda" for you, as well as starts all the components on adaql1 that you need. (Make sure you are on the correct computer and correct account !)

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 adaql1 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 "Configure" button; a dialog box pops up and you must choose the configuration you want, which is normally "Righthrs". Then you can either press "Download" followed by "Prestart" and "Go" to start a run, or just press "StartRun" (it does all those steps).

If you ever logout of the DAQ computer adaql1 or have rebooted it, here is how to restart the preferred setup. Login as "adev" for adaql1. Emacs the prescale file in the background: "emacs ~adev/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 DAQ Configuration for Fall 2008

        CODA Configrations  -- on adev account on adaql1 computer 

        RightHrs  -- standard HRS unbuffered DAQ mode
        pedrun -- to do a pedestal run (see section II).

DAQ crates     (accurate as of May, 2008)
  ROC       Description      IP Address   Portserver
  ROC1     R-arm Lower Fastbus Crate   hallasfi1     hatsv3 port 2  
  ROC2     R-arm Upper Fastbus Crate   hallasfi2     hatsv3 port 8  
  TS0     R-arm VME/Scaler   hallavme2     hatsv3 port 3  

VI.   THINGS THAT GO WRONG WITH DAQ or COMPUTERS


VI.   More info

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


This page maintained by Robert Michaels   rom@jlab.org