Chapter 2. Setting up the software
The Readout program you have built runs an extended Tcl interpreter. Tcl is a scripting language that is
widely used throughout the NSCL as an extension language. It provides a common base language for
programming applications. Each program in turn extends this language with a set of commands that
allow you to control the application itself.
The commands we will be working with are:
begin
Begins a run. From the point of view of your code, your the Initialize and Clear member
functions of your event segment will be called. The Readout framework will respond to each trigger
by calling the Read member function of your event segment.
end
Ends a run. The readout framework stops responding to triggers.
Tell the readout program to start a run:
% begin
The >bufdump terminal session should now start spewing stuff at you. If the trigger rate is high, you may
need to stop the run to be able to read the buffers. To do this type: end to the Readout program.
When the run starts, bufdump dumps the headers of several non-event buffers. As each event buffer is
filled with data collected by the Read member function in your event segment, bufdump will dump the
buffer header and the first event in the buffer. This might look a bit like this:
----------------------- Event (first Event) ----------------
Header:
300 1 -27712 0 1859 0 4 0 0 0 5 258 772 258 0 0
Event:
71(10) words of data
47 46 ff00 4200 2000 4000 404f 4010
4055 4001 4066 4011 404c 4002 4059 4012
4059 4003 4058 4013 404d 4004 405d 4014
405e 4005 4048 4015 4058 4006 4076 4016
4065 4007 4bcc 4017 4050 4008 4068 4018
406b 4009 4057 4019 405a 400a 4067 401a
406a 400b 404e 401b 405a 400c 406c 401c
4066 400d 405a 401d 404f 400e 406e 401e
405a 400f 4055 401f 404c 4404 5824
15
Comentarios a estos manuales