The event builder itself is a loadable Tcl package rather than a program. This allows experiment designers to:
Provide application dependent user interfaces on top of and around those provided by the event builder.
Tailor the operation of the event builder to meet application specific requirements.
The example below is a Tcl script fragment that shows how to start the event builder. The code assumes that the environment variable DAQROOT has been set to the top installation directory of the NSCLDAQ being used (version 10.2 or later).
Example 41-3. Starting the event builder
lappend auto_path [file join $::env(DAQROOT) TclLibs] package require EventBuilder EVB::Start ?name?
auto_path
when
tclsh or
wish starts.
name
parameter specifies the event builder name. Note that
if you provide a duplicate name,the script will attempt
to pop up a Tk dialog prompting you to continue or not.
When this proc has returned, the event builder is listening for connections on that port and the client library will be able to find the event builder.
This proc must be called prior to any other procs in the EVB:: namespace.