Chapter 2. Setting up the software
Modify it so that it reads:
Objects=Skeleton.o MyEventSegment.o
Save this edit, exit the editor and type:
make
This will attempt to compile your readout software into an executable program called Readout. If the
make command fails, fix the compilation errors indicated by it and retry until you get an error free
compilation.
2.1.4. Testing the Readout Software
The Reaedout program must run on a system that is physically connected to the VME crate containing
your digitizers. Note that the ReadoutShell tool can be used to wrap your program with a Graphical user
interface (GUI), and run it on the requested remote system. While debugging your software we do not
recommend this. It’s better just to run the software from the command line, or under control of the gdb
symbolic debugger (see man gdb for more information about this extremely powerful debugging tool).
In this section we’ll show how to use the command line to
• Start up a very simple low level event dumping program.
• Start your Readout program, start a run, stop a run and exit.
• Interpret the event dumps created while the run is active
There are two buffer dumping programs that are now available to support the NSCL Data acquisition
system. Unfortunately, both are called bufdump and can only be distinguished by where they are
installed.
/usr/opt/daq/current/bufdump
Dumps the front segments of buffers in real-time. This is the program we will use for our initial
testing.
/usr/opt/utilities/current/bin/bufdump
Provides formatted dumps of complete buffers. Each buffer must be individually requested from the
data taking system, or an offline file. This program has extensive online and offline help and may be
very useful and powerful to detect and debug problems with more complex event structures than our
example, but is overkill for this application. A web based manual for this program is available at
http://docs.nscl.msu.edu/daq/bufdump/. A PDF printable manual is available at
http://docs.nscl.msu.edu/daq/bufdump/manual.pdf. The program’s help menu also has very
complete documentation.
13
Comentários a estes Manuais