constAdded Tcl featuresAdded Tcl featuresbegin

begin

Begin starts a new run. The format of the begin command is:

   begin
   

The following example starts a run and ends it after 20 seconds (must be run from Readout --window):

    %   begin; after 20000 end
   

The following example starts a run and ends it after at least 100,000 events have been acquired. It makes use of the events const (must be run from Readout --window):

    %   proc EndAfter {nevents interval} { 
			   global events 
			   if {$nevents <= $events } { 
			      end 
			   } else { 
			      after $interval {EndAfter $nevents $interval }
			   } 
			   
			   
    %    begin; EndAfter 100000 10
   
   

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

constAdded Tcl featuresAdded Tcl featuresbegin