Project

General

Profile

Running DAQ Interface » History » Version 1

John Freeman, 06/01/2014 09:48 PM

1 1 John Freeman
h1. Running DAQ Interface
2 1 John Freeman
3 1 John Freeman
DAQ Interface is designed to be run, along with rest of the run control code, on lbnedaqtest01.fnal.gov . To obtain an account on this system, contact John Freeman, jcfree@fnal.gov . Once you have an account, you may do the following:
4 1 John Freeman
5 1 John Freeman
* *Check out the run control software*:
6 1 John Freeman
7 1 John Freeman
 Simply execute <pre>git clone ssh://p-lbnerc@cdcvs.fnal.gov/cvs/projects/lbnerc</pre>
8 1 John Freeman
9 1 John Freeman
* *Set up the environment*: 
10 1 John Freeman
Just cd into lbnerc, and then execute <pre>source source_me</pre> This will set up the Python virtual environment needed by the LBNE RC code in the parent directory of lbnerc, in a directory call "env" (in other words, "env" and "lbnerc" are at the same level of the directory hierarchy on the system)
11 1 John Freeman
12 1 John Freeman
* *Start LBNE run control*: <pre> lbnecontrol & </pre>. Note this won't work if lbnecontrol is already running. 
13 1 John Freeman
14 1 John Freeman
* *Start DAQ Interface*: <pre> daqinterface -n daqint -r 5570 -c localhost -H localhost & </pre> . Like lbnerc, this also won't work if daqinterface is already running
15 1 John Freeman
16 1 John Freeman
* *Take DAQ Interface through the standard transitions* : 
17 1 John Freeman
18 1 John Freeman
Fire up a new shell in which the artdaq processes are launched, and initialize them with FHiCL documents:
19 1 John Freeman
<pre>
20 1 John Freeman
lbnecmd init daq
21 1 John Freeman
</pre>
22 1 John Freeman
23 1 John Freeman
Start the toy fragment generator, which produces simulated CAEN board data, and plot the data using an Art module:
24 1 John Freeman
<pre>
25 1 John Freeman
lbnecmd start daq
26 1 John Freeman
</pre>
27 1 John Freeman
28 1 John Freeman
Halt the running of the DAQ:
29 1 John Freeman
<pre>
30 1 John Freeman
lbnecmd stop daq
31 1 John Freeman
</pre>
32 1 John Freeman
33 1 John Freeman
Kill all the artdaq processes:
34 1 John Freeman
<pre>
35 1 John Freeman
lbnecmd terminate daq
36 1 John Freeman
</pre>