### Command centre

Command centre accommodates the interpreter and procedure frames.

The interpreter is the next layer, which communicates with procedure layer by text type commands and one spectrum buffer and with devices through the commands described.

Any command can be send manually from the command box by pressing triangle button on the right.

In the case of success, what is written in the script panel is NOT exactly what is send back internally, but more descriptive. If the command does not succeed the error message is sent back.

The general command structure is:

DVC.COMMAND(PARAM)

where

DVC is three letters name of device. There are two reserved names ITR and SHN for the interpreter and synchronisation device.

COMMAND is six letters string. Can be any from listed below commands plus some commands directed to the interpreter. AS common rule the first three letters are associated with the object and second half of the command - with action (e.g. CHNGET – ChaNnel GET, AMVSET – Absolute MoVe SET, etc).

PARAM is parameter according the particular command syntax. String type is text bracketed in inverted commas - ". Boolean parameter is either true or false.

The syntax of Spectrion script language is of JavaScript kind.

Another important feature you have to deal with is the interpreter/device setting file. Each device has its own setting file and the user can save/load each setting file individually or as group thru Itr.SetSav(Filename) command.

Purpose

The purpose of this window is to enable the user to run script commands. These commands can be run manually or from a script file.

Open Script File button

Open a script file and run it.

Run From Clipboard button

Run the commands that have been copied to the clipboard.

Save Script button

Save the command in the command log edit box into a script file. Only the commands (and not program’s outputs) will be saved.

Copy Selection button

Copy the selection into the clipboard.

Run button

Run the command in the command combo box.

Command combo box

Write and store manual commands.

Command Log edit box

Shows command and program's outputs in a chronological sequence.