Setting up a scaler displayPutting it all TogetherReadoutGUIRunning SpecTcl on line

Running SpecTcl on line

Running SpecTcl on line involves:

SpecTcl actually has no code to connect it to the data acquisition system. This allows SpecTcl to be completely independent of data acquisition system, but also requires a helper program to connect to the data acquisition system, and send on line data buffers to SpecTcl through a UNIX pipe.

The Tcl/Tk fragment below can be sourced into SpecTcl. It creates a button That attaches SpecTcl to an online data source.

The attach command specifies that SpecTcl will take data from a pipe data source. Everthing after the -pipe on the attach command is a command to run with stdout connected to that pipe. The program /usr/opt/daq/Bin/spectcldaq attaches to the data acquisition system taking buffers from the specified system (spdaq17 in the example), and pipes them to SpecTcl. Substitute the name of your data source system. The start command starts taking data from the data source as it becomes available.

The script below adds an "Attach Online" button to SpecTcl's GUI:

proc Attach {}  {
   attach -pipe /usr/opt/daq/Bin/spectcldaq tcp://spdaq17:2602/
   start
}
button .attach -command Attach -text "Attach Online"
pack    .attach

Report documentation errors to Ron Fox (fox@nscl.msu.edu)or NSCL's Bugzilla page

Setting up a scaler displayPutting it all TogetherReadoutGUIRunning SpecTcl on line