General commands


Commands to the interpreter "Itr" - fixed (reserved) name

Itr.ScrRun(FileName)

    Execute Spectrion script from Filename. Returns 'OK' or 'Error'.

Itr.LckSet(B)

    Lock/unlock (B=TRUE/FALSE) the device rack. Returns 'OK' or 'Error'.

Itr.SetLod(FileName)

    Load all the devices settings from FileName with extension - devices names. Returns 'OK' or 'Error'.

Itr.SetSav(FileName)

    Save all the devices settings into FileName with extension devices names. Returns 'OK' or 'Error'.

Itr.ShwSet(B)

    if B then show commands and replays in interpreter window

         else stop show commands and replays in interpreter window

    Useful for time critical parts of data acquisition. 

    Returns 'OK' or 'Error'.

Itr.VerGet

    Gets back Spectrion version number as integer (e.g. 100 -> v1.00) 

Itr.MsrGet

    Returns comma separated list of measurement devices

Itr.CtrGet

    Returns comma separated list of control devices

Itr.EnbGet 

    Check if the device rack is enabled (is it connected and switched on). Returns 'True' / 'False'

Itr.EnbSet(B) 

    Switch device rack to Running / StandBy state . Returns 'OK' or 'Error'.

Itr.DvRSet(B) 

    The same as EnbSet but switches (visually) device rack ON/OFF. Returns 'OK' or 'Error'. Intended for data processing visualization only.

// Text

Output Text in interpreter window (comment).


Plot commands (SP) - avoid devices names starting with SP (to avoid confusion)

The symbol after SP is '*' for general plot command and $ - alphanumerical symbol (in order 1..9, A..Z) for particular plot.

SP*.NewSet(Template)

    Create new plot using Template for plot setting. Returns the order number of created plot.

SP*.ClrAll

    Clear all plots . Returns 'OK' or 'Error'.

    In next commands $ is the number of the plot (1..35), if $=’#’ then active plot is used.

SP$.Delete

    Delete $ plot  . Returns 'OK' or 'Error'.

SP$.VieSet(Mode)

    Set view mode of $ plot to

    Returns 'OK' or 'Error'.

SP$.FilOpn(Filename)

    Opens PL$ under Filename (full path included), the plot must exist. Returns 'OK' or 'Error'.

SP$.FilSav(Filename)

    Saves PL$ under Filename (full path included) - works with HDT files only (*.R##).  Returns 'OK' or 'Error'.