To write an autorun sequence, a set of standard commands are available to:
To modify the parameters of a device, the command SET should be used:
 Syntax: SET  <alias>|<equipment name> [<device specific arguments>]
 Examples: 
- Setting the Cryostat Temperature (2-loops mode): SET Temperature 100.0 1.0 60 100.0 1.5 30
 
- Temperaturerepresents the alias for the temperature controller frontend,
- 100.0represents the new setpoint in Kelvin for the first heating loop,
- 1.0represents the tolerance in Kelvin for the first heating loop,
- 60represents the time that the first temperature needs to stay within the tolerance to be considered "in range",
- 100.0represents the new setpoint in Kelvin for the second heating loop,
- 1.5represents the tolerance in Kelvin for the second heating loop,
- 30represents the time that the second temperature needs to stay within the tolerance to be considered "in range".
 
- Setting the Cryostat Temperature (1-loop mode): SET Temperature 100.0 1.0 60
 
- Temperaturerepresents the alias for the temperature controller frontend,
- 100.0represents the new setpoint in Kelvin,
- 1.0represents the tolerance in Kelvin,
- 60represents the time that thetemperature needs to stay within the tolerance to be considered "in range".
 
- Setting an helium flow:  where:
- Flowrepresents the alias for the flow controller frontend,
- FLOWrepresents the parameter to be changed,
- 2.5represents the flow in l/min.
 
- Setting a magnet:  where:
- Magnetrepresents the alias for the magnet controller frontend,
- WEDrepresents the name of a specific magnet,
- 1000represents the new field in Gauss,
- 60represents the waiting time for the field stbilization.
 
- Setting a sample rotation angle:  where:
- Positionrepresents the alias for the rotation controller frontend,
- ANGLErepresents the parameter to be changed,
- 130.0represents the new angle.
 
- Setting a new value for the Tube Heater:  where:
- Tube_Heaterrepresents the alias for the Tube Heater frontend,
- Irepresents the parameter to be changed (here the current),
- 0.230represents the new current in Ampere.
 
- Setting a new value for a beamline element: SET Beamline_PiM3 FS302 400
 
- Beamline_PiM3represents the alias for the Beamline Controller frontend,
- FS302represents the element to be changed (here the slits in front of GPS),
- 400represents the new DAC value for this element.
 
To start a run in an autorun sequence, the commandSTART should be used:
 Syntax: START S[CALER]    <number of scaler>|<label> <limit>
START H[ISTOGRAM] <number of histogram>|<label> <limit>
 Examples: 
- Starting a run to accumulate 10'000'000 events in the histogram 1: START Histogram 1 10000000
 
- Starting a run to accumulate 5'000'000 events in the histogram "Forw": START Histogram Forw 5000000
 
- Starting a run to accumulate 3'000'000 events in the scaler 5: 
 
As a rule, if a run was already active when an autorun sequence is started, it will be stopped. The users can nevertheless keep the running run and incoporate it in the autorunsequence by using the commandSTOP as the first command in the autorun sequence: :
 Syntax: STOP S[CALER]    <number of scaler>|<label> <limit>
STOP H[ISTOGRAM] <number of histogram>|<label> <limit>
 Example: 
- Stopping a run, already running before the autorun sequence is started, after an accumulation of 10'000'000 events in the histogram 1: STOP Histogram 1 10000000
 
There is the possibility to make the autorun sequence process wait a given amount of time before proceeding with the next command:
 Syntax:  
 Example: 
- Waiting 15 minutes before proceeding: 
The autorun sequence can wait until a device has reached specific conditions.
 (Note: to date this command applies only to the LTC21 Temperature Controller).
 Syntax: WAIT <alias>|<equipment name>|<interval [sec]>  [<device specific arg>] [<max interval>]
 Example: 
- Waiting that the temperature is in range 
The titles for a run can be modified from the autorunsequence with the commandTITLE:
 Syntax: TITLE    S[AMPLE]=<text> F[IELD]=<text> T[EMP]=<text> O[RIENT]=<text> C[OMMENT]=<text>
 Note that normally the field, temperature and orientation entries are automatically changed when they have been modified by the command SET or if they have been changed interactively. 
 Example: 
- Changing the comment entry TITLE C=This is just a test
 
 SET Temperature 100 1.0 30 100 1.0 30
 SET Flow FLOW 1.5
 WAIT Temperature INRANGE
 START Histogram 1 10000000
 SET Magnet WED 1000 60
 
Generated on Tue Apr 18 14:28:38 2006 for MuSR Graphical User Interface: deltat by 
 1.4.6-NO
 1.4.6-NO