LabAnalyst has six menus, plus on-line instructions in the "Help" menu (OS 8 and above), "Special" menu (OS X), or the Apple menu (earlier operating systems).

  FILE  EDIT  ANALYZE  VIEW  CHANNELS  SCRIPTS  HELP / SPECIAL
 'Script' definitions
 Recording a script
 The script editing window
 Script menus


'Scripts' are pre-defined sequences of operations that simplify repetitive analysis.  They are most useful for processing large numbers of SIMILAR data files, and for saving standardized protocols for future use.  'Similar' files are files with identical numbers of channels and identical variable types in the respective channels.  If you attempt to use scripted operations on dissimilar files, the results will be unpredictable and probably undesirable, particularly if the 'Automatic run' option is used.

Although most useful for processing large numbers of similarly formatted files, scripts can also be used to save standardized protocols for future use.  The operations in a script are those invoked from the EDIT and ANALYZE menus, such as lag correction, smoothing, gas conversions, basic statistics, etc.

To use a script, you must place it into the script handler.  There are three ways of doing this:

Once a script is entered into the script handler, it can be modified in the EDIT SCRIPT window (example below). 

 This window has been slightly rearranged in the FP version.

To remove an existing script and enter an entirely new script, click the 'Clear all' button.  Then click the buttons corresponding to each step in your processing procedure.  Manipulations are color-coded yellow in the sequence list and analysis operations are color-coded blue-gray.  The red-coded END SCRIPT operation is not required, but it will terminate the script sequence more cleanly than if it is omitted.  Note that some manipulations (channel change and lag correction) open a second edit field containing the default value (i.e., the new channel number or the seconds of lag).  Edit these values as necessary.  DO NOT select inappropriate values, such as a channel number greater than the number of channels in the data file!

You may remove any step by first clicking on its edit field, and then clicking the 'Clear step' button.  You can also replace any step with a different step in a similar manner.  Do not worry about 'gaps' in the script; they will be ignored during processing.  Simply make sure that the sequence of operations is correct.

When editing or recording scripts, here are some important points to keep in mind:

After it is entered, a script is run from the RUN SCRIPT menu selection.  Unless stopped with the INTERRUPT SCRIPT button, it will proceed through the sequence of steps without pausing (except where user input is needed; i.e., to select baseline modes, remove spikes, etc.), and then halt.  When a new file is loaded the script automatically starts again.  LabAnalyst remembers most manipulation options, such as the number of smoothing steps, the channel used for setting flow rate, etc., so that once they are selected during the first script cycle, they automatically reappear during subsequent cycles.

For analysis operations, which involve selection of data blocks and other user input, a button ('Continue script; step x') appears in the upper right corner of the data plot.  When you have completed a particular analysis operation, click this button to proceed to the next step in the script.  You may select new blocks, copy files, save analysis results to files or printer, make graphical file images, etc., when a script is running -- but only during analysis steps.

Back to top

SCRIPT menu selections are:

   RECORD A SCRIPT     Begins 'recording' subsequent manipulation and analysis operations.  A white-on-red edit field at the top of the plot area keeps track of the cumulative number of script steps (remember that the maximum is currently 40 steps).

  HALT SCRIPT RECORDING...     Stops script recording and activates the RUN SCRIPT and 'automatic run' commands, which will commence when the next file is loaded.  The EDIT SCRIPT window is opened to allow any modifications to the script.

  LOAD SCRIPT     Loads a script from disk, but does not run it.  Note that the script file formats for LabAnalyst FP and 'plain' LabAnalyst are not compatible.

  EDIT SCRIPT...      This option opens the script editing window, which contains a set of buttons to define the operations in the script sequence or to load, save, or edit scripts.  The window also contains data fields showing the current sequence.

  SAVE SCRIPT     Saves a script from memory to a disk file.  Note that the script file formats for LabAnalyst FP and 'plain' LabAnalyst are not compatible.

   RUN SCRIPT     When you have defined a script, this option executes the instructions.  The script will begin immediately after RUN SCRIPT is selected; subsequently it runs only when new files are loaded.

  INTERRUPT SCRIPT     Halts script operations, but does not change the script itself.  If you interrupt a script and then restart it (with RUN SCRIPT), the scripting operations don't commence until a new file is loaded.

   CLEAR SCRIPT     Halts script operations and eliminates all script information from memory.  You will need to start scripting from scratch if this operation is used.

  QUIET SCRIPT RUNS     Turns off sounds during script operations.

Back to top


go back to the LabAnalyst page

go to the Warthog Systems page

go to Mark Chappell's page