To use the S800 integration package you must
Include the NSCLDAQ 10.1 or later TclLibs
directory in your Tcl package load path (auto_path
).
Use package require s800 to load the s800 package.
Initialize the package and invoke its commands from the appropriate parts of your ReadoutCallouts.tcl script (creating a new one if needed). The reference material on the ReadoutGUI describes ReadoutCallouts.tcl scripts more fully.
The following is a minimal example:
Example 39-1. A ReadoutCallouts.tcl for the s800
lappend auto_path /usr/opt/daq/10.1/TclLibs package require s800 s800::Initialize spdaq48 proc OnBegin run { s800::OnBegin } proc OnEnd run { s800::OnEnd }
OnBegin
proc in
ReadoutCallouts.tcl is ivoked
as the run is beginning. The
s800::Onbegin
function
sets up, if needed, the necessary bits and pieces
of software needed to get data from the S800 event builder
and insert it into the ring (by default named
s800). It then requests the the
s800 Readout program start taking data.
s800::OnEnd
asks the S800 readout software to end the run as a result
of a click on the button.