Station Commands¶
These commands are executed directly by the instrument through the DataLink port on the Communication Module. They are sent through the module by using Remote Command: sendcommand or Remote Command: sendmlcommand, found in Communication Module API.
echo¶
Syntax: echo [...]
Example: echo Hello World!
Returned: echo Hello World!
Prints the whole command given back to the user. May be used for testing purposes.
setdate¶
Syntax: setdate [yy-mm-dd]
Sets the date on the instrument. If user-inputted date is omitted, date is set to current date.
settime¶
Syntax: settime [hhmmss]
Sets the time on the instrument. If user-inputted time is omitted, time is set to current time.
listfiles¶
List files stored on backup, cartridge, or all memory cards.
This is a multi-line command. Be sure the requesting device (ie. COM100) knows the specified <EOC>.
Syntax: listfiles [B|C|A] <EOC>
Example: listfiles B EOC
putfile¶
Note
This command is almost never used manually.
Create a new file in backup or cartridge. First character of path specifies target card.
Syntax: putfile [B|C]<path>
Example: putfile Bfile.aps
rmfile¶
Removes file. First character of path specifies target card.
Syntax: rmfile [B|C]<path>
Example: putfile Bfile.aps
getstate¶
Syntax: getstate
Gets the current state of script.
Expected outputs: Script running, since ... , Script paused, Sampling paused, Sampling stopped, or Unknown state.
pausescript¶
Syntax: pausescript
Pauses a running script.
Expected output Paused or ERROR script not running
unpausescript¶
Syntax: pausescript
Resumes a paused script.
Expected output Unpaused or ERROR script not paused
stopscript¶
Syntax: stopscript
Stops a running script.
Expected output Stopped or ERROR sampling not running
startscript¶
Starts execution of an AirPhoton script. ee setscript for which script is active. Optional strict keyword enable strict checkscript mode prior to script execution.
Syntax: startscript (strict)
Example: startscript strict
checkscript¶
Checks if a script for valid syntax.
Syntax: checkscript [B|C]<path>
Example: `` checkscript B/script.aps``