Hints on Hall A Data Taking with CODA 2.2



Robert Michaels, rom@jlab.org, Jefferson Lab Hall A, updated Jan 2001


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

I.  Running Spectrometer DAQ

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

II.  Frequently Asked Questions

III.  REBOOTING STUFF

HOW TO SHUTDOWN or REBOOT WORKSTATIONS

Rarely, the workstations don't function properly and the simplest way out is to reboot. To reboot adaqs2,s3 (SunOS): Login as "adaq" and type "reboot". In a few minutes the workstation comes back alive. This solves most problems. For adaqh2,3,4,5 (HP-UX), you have to "shutdown" (cannot "reboot"). Shutdown works on SunOS and HP-UX, and is necessary in case of power failure. To shutdown, login as "adaq" and type "shutdown". After several minutes screen goes black, wait a minute more, then power off. When you power on again, computer reboots. (Eccentricity of adaqs2: When it comes back on from shutdown, there is a sign "Ok" where you have type "boot". When you login to online account you have to type "xhost +adaqs2".) For Linux, Ole usually keeps some instructions posted near the PC terminal.

QUICK   RESETS

Problems with CODA 2.2 can usually be solved with a simple reset or with a Cold Start. If not call Bob Michaels or Dave Abbott.

If a ROC seems to be hung up, you can reboot it by going to the workspace "Components" 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 written in the name of the xterm (hallasfi1, hallasfi2, etc). Of course, you should know what subset of these computers are used for your configuration. For example, experiments in year 2000 typically use hallasfi1 (ROC1), hallasfi2(ROC2), hallasfi3(ROC3), halladaq1(TS0), halladaq4(TS1), and hallavme1(ROC14), If the ROC seems really frozen, use the "Crate Resets" button in the magnet EPICS screen on hac. This GUI is being developed (not by me) as I write this... at the moment the mapping is roc14=bpm/raster, roc1=R-arm fastbus1, roc2=L-arm fastbus1, roc3=L-arm fastbus2, TS0=R-arm Trig Super, TS1=L-arm Trig Super. To reset, toggle the state. E.g. for roc14 toggle 1, wait 10 seconds, then 0. For the others, toggle the right, then left button (even though the button labels are chaotic). 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 "Reset" does not work, try a cold start (see below).

COLD   START

First kill all process on the workstation where CODA is running by typing from anywhere on the adev account "kcoda". This stops runcontrol, the event builder, event recorder, the runcontrol server, and cleans up the ET system. Now you can start everything again by typing "runcontrol" but 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 ROC1, ROC2, ROC3, ROC14, TS0, and TS1 as explained in the Reset section above. A more convenient way to reset (reboot) the ROCs is to go to the Components workspace and enter "reboot" at the vxWorks prompt -> of each ROC. After a few minutes, telnet back in and verify they are up. Some of the crates take longer than others to reboot. Be pateient. If the ROCs are frozen, press the reset buttons instead of typing "reboot". To start everything on the workstation, type "runcontrol". Then 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 presumably "twospect" for two-arm operation. Then press download and wait about 30 seconds. Now you can "Start Run" to start a run.

After bringing up runcontrol you need to "Reset" after configuring the "Run Type" (if msql database gets confused about state of things). If its ever necessary to reprogram the NVRAMS on the ROCs, see adaqs2:/home/adev/doc/vmeram.doc. Sometimes connection via portserver (RS232 interface) is useful, see adaqs2:/home/adaq/doc/portserver.doc

If you ever logout of adaqs2, or have rebooted it, here is how to restart the preferred setup. Run runcontrol on the workspace called "runcontrol". In this same workspace, start emacs in background: emacs /home/adev/prescale/prescale.dat &     Also start datamon by typing "datamon". 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. If these xterm windows for components aren't there, type "setupxterms". Remember which frontent computers are involved; for example ROC3 may be irrelevant (ROC3 is FPP).

IV.   THINGS THAT GO WRONG WITH DAQ or COMPUTERS

This page maintained by Robert Michaels   rom@jlab.org