QPS Command Summary
Copyright (c) Quarch Ltd
QPS v1.52
Generated: May 12, 2026


*** Commands ***

Command: $annotate
Description: Adds an annotation
Version: 1
See also: $comment, $stream annotation add, $stream comment add
Arguments
Argument: time
Description: Annotation time
Index: 0
Type: STRING
Default value: NONE
Argument: text
Description: Annotation string
Index: 1
Type: STRING
Default value: NONE
Returns: OK if completed successfully, else Fail if the command did not process correctly or an invalid time is specified
Notes:
Format of params string: time_specifier[space]text to be added, eg 123.456 hello world
Time specifier is of the form:
for elapsed time relative to the recording: exxxDxxx:xxx:xxx.xxx
for absolute time, pass the number of milliseconds since the epoch (midnight 1 January 1970 UTC, ie Unix time common to many environments): xxxxxxxxxxxx
The annotation text may be split over two or more lines by including \n in the string
Examples:
$annotate 0 Annotation1 --> adds an annotation at time 0 and so at record number 0

Command: $channels
Description: Returns details of the current channels
Version: 1
See also: $stream channels
Returns: A list of channels in the format: "channelName groupName baseUnits", such as "12V voltage mV"
Notes:
Return details of current channels in the format: channelName groupName baseUnits

Command: $chart channel hide
Description: Hides a channel
Version: 2
See also: $hide channel
Arguments
Argument: channel
Description: Channel
Index: 0
Type: STRING
Default value: NONE
Argument: group
Description: Group
Index: 1
Type: STRING
Default value: NONE
Returns: OK if successful, else Fail if an invalid group/channel name or the channel is already hidden

Command: $chart channel show
Description: Shows a channel
Version: 2
See also: $show channel
Arguments
Argument: channel
Description: Channel
Index: 0
Type: STRING
Default value: NONE
Argument: group
Description: Group
Index: 1
Type: STRING
Default value: NONE
Returns: OK if successful, else Fail if an invalid group/channel name or the channel is already shown

Command: $chart reposition
Description: Sets the chart main view to the specified start and end times
Version: 2
Arguments
Argument: startTime
Description: Start time
Index: 0
Type: STRING
Default value: NONE
Argument: endTime
Description: End time
Index: 1
Type: STRING
Default value: NONE
Returns: OK if successful, else Fail if no device connected or invalid start/end times are specifiied
Notes:
Both the start and end times are specified as a time-unit pair; for example: 100mS
startTime > 0, endTime > 0 and startTime < endTime
Examples:
$chart reposition 10S 20S

Command: $chart snapshot
Description: Takes a snapshot of the chart, timeline and channels windows
Version: 2
See also: $take snapshot
Arguments
Argument: type
Description: Type of snapshot to take consisting of a comma separated list of options: [all, chart, timeline, key]
Index: 0
Type: STRING
Default value: all
Acceptable values: [all, chart, timeline, key]
Argument: filePath
Description: Optional file path instead of using default archive path
Index: 1
Type: STRING
Default value: NONE
Returns: OK if successful, else Fail if an invalid file path is specified
Examples:
$chart snapshot --> default and captures chart+timeline+key
$chart snapshot all --> same as default
$chart snapshot chart --> chart only
$chart snapshot chart,key --> chart+key
$chart snapshot chart,timeline --> chart+timeline

Command: $comment
Description: Adds a comment
Version: 1
See also: $annotate, $stream annotation add, $stream comment add
Arguments
Argument: time
Description: Comment time
Index: 0
Type: STRING
Default value: NONE
Argument: text
Description: Comment string
Index: 1
Type: STRING
Default value: NONE
Returns: OK if completed successfully, else Fail if the command did not process correctly or an invalid time is specified
Notes:
Format of params string: time_specifier[space]text to be added, eg 123.456 hello world
Time specifier is of the form:
for elapsed time relative to the recording: exxxDxxx:xxx:xxx.xxx
for absolute time, pass the number of milliseconds since the epoch (midnight 1 January 1970 UTC, ie Unix time common to many environments): xxxxxxxxxxxx
The annotation text may be split over two or more lines by including \n in the string
Examples:
$comment e1 Comment1 --> adds a comment after an elapsed time of 1 second

Command: $connect
Description: Connects to a specified device
Version: 1
See also: $module connect
Arguments
Argument: device
Description: Device ID
Index: 0
Type: STRING
Default value: NONE
Returns: OK if successful, else Fail if an attempt is made to call this command while streaming, the device is not found, a QPS UI error occurred or a connection timeout occurred
Notes:
The command is passed to QIS which will test the connection availability and suitability for streaming data returning a status of OK
or the reason for connection failure. If connection is successful, the CCS and file dialogs should close and the chart window connected to the device should display.
$connect supports both device names and IP addresses
Examples:
$connect usb::QTL1999-02-999
$connect tcp::QTL1999-02-999
$connect tcp::81.187.174.46

Command: $connected
Description: Returns the connected device ID
Version: 1
See also: $module name
Returns: The connected device if a valid connection is established, else "Device not found"

Command: $convert csv
Description: Converts one or more CSV files [.csv] to a QPS recording [.qps]
Version: 2
See also: $stream import
Arguments
Argument: from
Description: From .csv file(s)
Index: 0
Type: STRING
Default value: NONE
Argument: to
Description: To .qps file
Index: 1
Type: STRING
Default value: NONE
Argument: prefix
Description: Channel name prefix
Index: 2
Type: STRING
Default value: None
Returns: OK if successful, else Fail if invalid from/to arguments or the conversion failed
Notes:
For a "to" file such as "c:\recordings\rec1\rec1.qps" the base directory "c:\recordings" must exist, but the newly created recording directory "c:\recordings\rec1" must not already exist as this will be created as part of the conversion
All channels detected in the "from" file(s) are converted.
Multiple CSV files are comma-separated in the "from" argument.
Channel name prefixes are added by way of the "prefix" argument. For example, a prefix of "F" would apply prefix "F1" to the first CSV file, "F2" to the second CSV file, and so on. Prefixes are only necessary for two or more files and when channel name clashes will result from merging the CSV files.
Examples:
$convert csv from="c:\temp\rec1.csv" to="c:\recordings\rec1\rec.qps"
$convert csv from="c:\temp\rec1.csv,c:\temp\rec2.csv" to="c:\recordings\rec1\rec.qps"
$convert csv from="c:\temp\rec1.csv,c:\temp\rec2.csv" to="c:\recordings\rec1\rec.qps" prefix="F"

Command: $create channel
Description: Creates a new channel
Version: 1
See also: $stream channel add
Arguments
Argument: channelName
Description: Channel name
Index: 0
Type: STRING
Default value: NONE
Argument: channelGroup
Description: Channel group
Index: 1
Type: STRING
Default value: NONE
Argument: baseUnits
Description: Base units
Index: 2
Type: STRING
Default value: NONE
Argument: usePrefix
Description: Indicates whether to use a prefix; acceptable values are yes/no
Index: 3
Type: STRING
Default value: NONE
Returns: OK if successful, else Fail if the custom channel/group names already exist or an error occurred creating the new channel
Notes:
Format: channelName channelGroup baseUnits yes/no(usePrefix)
usePrefix [yes/no] option 'no' disables the application of metric prefixes u, m, k, M etc
A custom channel group name must be distinct from device group names

Command: $debug list commands
Description: Returns a list of commands
Version: 2
Returns: List of all commands

Command: $echo
Description: Echo command
Version: 1
Arguments
Argument: string
Description: A string of text to simply echo back
Index: 0
Type: STRING
Default value: NONE
Returns: A copy of the specified argument string

Command: $get custom stats range
Description: Returns statistics for a specified range
Version: 1
See also: $stream stats table
Arguments
Argument: startTime
Description: Start time. For example: 5432.1 is 5432.1 seconds, 17d5432.1 is 17 days 5432.1 seconds, 17d200:5432.1 is 17 days 200 minutes and 5432.1 seconds etc
Index: 0
Type: STRING
Default value: NONE
Argument: endTime_numRecords
Description: End time OR number of records of form: [endTime | lnumber of records] in which letter "l" denotes that number of records is being specified
Index: 1
Type: STRING
Default value: NONE
Returns: Statistics for a specified range, or Fail if no device is connected or invalid start/end times specified

Command: $get stats
Description: Returns statistics
Version: 1
See also: $stream stats table
Returns: A table of statistics for all annotations

Command: $help
Description: Help command
Version: 1
Arguments
Argument: type
Description: The type of help to return. Options: 1) None [same as "all"], 2) "all", 3) "internal", 4) help summary of another command; eg $help $echo
Index: 0
Type: STRING
Default value: all
Returns: Help for all commands or a requested command
Examples:
$help --> returns a list of all supported commands, each with a brief description
$help all --> same as $help
$help $echo --> returns a help summary of the $echo command
$help $chart snapshot --> returns a help summary of the $chart snapshot command

Command: $hide channel
Description: Hides a channel
Version: 1
See also: $chart channel hide
Arguments
Argument: channelInfo
Description: Channel information; a string split by : and assumed the following order: #0 = name, #1 = groupName, #2+ ignore
Index: 0
Type: STRING
Default value: NONE
Returns: OK if successful, else Fail if an invalid group/channel name or the channel is already hidden

Command: $list
Description: Lists available devices
Version: 1
See also: $module list
Returns: A list of connected devices if devices found, else "No Devices Found"

Command: $list -details
Description: Lists available device details
Version: 1
See also: $module list details
Returns: A list of connected devices with additional information if devices found, else "No Devices Found"

Command: $log
Description: Adds a channel/group value at a specified time
Version: 1
See also: $stream data add
Arguments
Argument: channel
Description: Channel name
Index: 0
Type: STRING
Default value: NONE
Argument: group
Description: Group name
Index: 1
Type: STRING
Default value: NONE
Argument: time
Description: Time
Index: 2
Type: INT
Default value: NONE
Argument: value
Description: Value
Index: 3
Type: FLOAT
Default value: NONE
Returns: OK if successful, else Fail if an invalid group/channel or time are specified
Notes:
Format: channelName channelGroup time value
Time format: UNIX time in mS or exxxDxx:xx:xx.xxxx for daysDhours:minutes:seconds.xxx
To indicate the end marker of an interval then set the value to 'endSeq'; eg : myStream.addDataPoint(channelName, groupName, 'endSeq')

Command: $module connect
Description: Connects to a specified device
Version: 2
See also: $connect, $module disconnect
Arguments
Argument: device
Description: Device ID
Index: 0
Type: STRING
Default value: NONE
Returns: OK if successful, else Fail if the specified device cannot be found or if currently streaming
Notes:
$module connect supports both device names and IP addresses
Examples:
$module connect usb::QTL1999-02-999
$module connect tcp::81.187.174.46

Command: $module disconnect
Description: Disconnects the current connection
Version: 2
See also: $connect, $module connect
Returns: OK if successful, else Fail if no currently connected to a device

Command: $module list
Description: Lists available devices
Version: 2
See also: $list
Returns: A list of connected devices if devices found, else "No Devices Found"

Command: $module list details
Description: Lists available device details
Version: 2
See also: $list -details
Returns: A list of connected devices with additional information if devices found, else "No Devices Found"

Command: $module name
Description: Returns the connected device ID
Version: 2
See also: $connected
Returns: The connected device if a valid connection is established, else "Device not found"

Command: $module scan
Description: Scans for available devices
Version: 2
See also: $scan
Arguments
Argument: deviceSpecifier
Description: TCP/IP address to scan for devices
Index: 0
Type: STRING
Default value: NONE
Returns: "Started network scan" if scanning for all devices. "Located Device: IP" if the specified device is found, else "No Quarch Device Found at: IP"
Examples:
$module scan tcp::192.168.1.90

Command: $open recording
Description: Opens a recording
Version: 2
Arguments
Argument: qpsFile
Description: .qps file
Index: 0
Type: STRING
Default value: NONE
Returns: OK if successful, else Fail if an invalid .qps file argument
Examples:
$open recording qpsFile="C:\quarch\recordings\AC\AC_Gen_test\AC_Gen_Test.qps"

Command: $progress check
Description: Checks the progress of a specific QPS task
Version: 2
Arguments
Argument: task
Description: The task to be checked
Index: 0
Type: STRING
Default value: NONE
Acceptable values: [open recording]
Returns: Percentage complete, or Fail if no task has been specified
Examples:
$progress check task="open recording"

Command: $qis status
Description: Reports the connection status of QIS
Version: 1
Returns: "Connected" or "Not Connected"

Command: $qps hide
Description: Hides the QPS application
Version: 2
See also: $qps show
Returns: OK if successful, else Fail if failed to hide the application

Command: $qps show
Description: Shows the QPS application
Version: 2
See also: $qps hide
Returns: OK if successful, else Fail if failed to show the application

Command: $read
Description: Reads data between a given start time and either end time or number of records
Version: 1
See also: $stream read
Arguments
Argument: startTime
Description: Start time
Index: 0
Type: INT
Default value: NONE
Argument: endTime_numRecords
Description: Number of records of form: [endTime | lnumber of records], in which the letter "l" denotes that the number of records is being specified
Index: 1
Type: STRING
Default value: NONE
Returns: Read data if successful, else Fail if no connected device, or an invalid time argument
Notes:
Times are xxxDxx:xx:xx.xxxx for daysDhours:minutes:seconds.xxx, number of records is exactly what you'd expect
Returns corresponding (long) sample time and all columns in raw format separated by ' ' spaces.
Examples:
$read 0 l100

Command: $save csv
Description: Saves to CSV format
Version: 1
See also: $stream export
Arguments
Argument: file
Description: The optional file to save the CSV data. If the file does not have a .csv extension then one is added.
Index: 0
Type: STRING
Default value: NONE
Argument: maxLines
Description: Maximum number of lines; -l[ALL|Max lines per file]
Index: 1
Type: INT
Default value: -lall
Argument: lineTerminator
Description: Indicates whether a line terminator; acceptable values: -c[yes/no]
Index: 2
Type: STRING
Default value: -cyes
Argument: delimiter
Description: Value separator; acceptable values: -s[",", "\t", ";", " "]
Index: 3
Type: STRING
Default value: -s,
Returns: OK if successful, else Fail if an error occurred saving, an invalid file or argument was specified
Notes:
Format: $save csv "file path/file name" -l[ALL|Max lines per file] -c[yes/no] -s[",", "\t", ";", " "]
If no .csv file is specified then the following is assigned: .../path to recording directory/csvExport+yyyyMMddHHmmss.csv
Examples:
$save csv filePath -11000 -cyes -s,

Command: $scan
Description: Scans for available devices
Version: 1
See also: $module scan
Arguments
Argument: deviceSpecifier
Description: TCP/IP address to scan for devices
Index: 0
Type: STRING
Default value: NONE
Returns: "Started network scan" if scanning for all devices. "Located Device: IP" if the specified device is found, else "No Quarch Device Found at: IP"
Examples:
$scan
$scan tcp::192.168.1.90

Command: $show channel
Description: Shows a channel
Version: 1
See also: $chart channel show
Arguments
Argument: channelInfo
Description: Channel information
Index: 0
Type: STRING
Default value: NONE
Returns: OK if successful, else Fail if an invalid group/channel name or the channel is already shown
Notes:
Channel is a string split by ":" and assumed the following order: #0 = name, #1 = groupName, #2+ ignore

Command: $shutdown
Description: Shuts down QPS
Version: 1
Returns: OK if successful, else Fail if any arguments are specified

Command: $start stream
Description: Starts streaming
Version: 1
See also: $stream record
Arguments
Argument: file
Description: File specifier is of the form /dir/dir/dir/recordingName. Any '\' characters are replaced with '/' character
Index: 0
Type: STRING
Default value: NONE
Argument: duration
Description: Specifies the stream duration in seconds.
Index: 1
Type: INT
Default value: NONE
Returns: OK if successful, else Fail if no connected device is found, if a stream is already running, a stream did not start or an invalid recording directory is specified

Command: $stats to csv
Description: Saves the statistics to CSV format
Version: 1
See also: $stream stats export
Arguments
Argument: file
Description: A single argument string specifying file path of form: *STREAM_DIR*+"statsGrid"+yyyyMMddHHmmss+".csv" - Path for data to be saved to.
Index: 0
Type: STRING
Default value: NONE
Returns: OK if successful, else if an error occurred creating the CSV file parent directory

Command: $stop stream
Description: Stops streaming
Version: 1
See also: $stream stop
Returns: OK if successful, else Fail if no stream is currently running

Command: $stream annotation add
Description: Adds an annotation
Version: 2
See also: $annotate, $comment, $stream comment add
Arguments
Argument: time
Description: Annotation time
Index: 0
Type: STRING
Default value: NONE
Argument: text
Description: Annotation string
Index: 1
Type: STRING
Default value: NONE
Argument: extraText
Description: Additional annotation text
Index: 2
Type: STRING
Default value: NONE
Argument: yPosition
Description: y position percentage on screen; range: [0:100]
Index: 3
Type: INT
Default value: 100
Argument: type
Description: Type string used when assigning colour and text colour
Index: 4
Type: STRING
Default value: Type1
Argument: colour
Description: Colour in hex format. The default is #FF0000, which equates to red
Index: 5
Type: STRING
Default value: #FF0000
Argument: textColour
Description: Text colour in hex format. The default is #FF0000, which equates to red
Index: 6
Type: STRING
Default value: #FF0000
Argument: timeFormat
Description: Time format ["elapsed", "unix"]. The default is "elapsed"
Index: 7
Type: STRING
Default value: elapsed
Acceptable values: [elapsed, unix]
Returns: OK if completed successfully, else Fail if the command did not process correctly or an invalid time is specified
Notes:
Time can be either an elapsed time or Unix time, determined by the timeFormat argument which is set to elapsed time by default
Examples:
$stream annotation add 7S Annotation1
$stream annotation add 7500mS Annotation2
$stream annotation add 00:00:08 Annotation3

Command: $stream annotations list
Description: Returns a list of all annotations
Version: 2
See also: $stream annotations table
Arguments
Argument: type
Description: Specifies the type of annotations. Options: [all, annotations, comments]. The default is "all"
Index: 0
Type: STRING
Default value: all
Acceptable values: [all, annotations, comments]
Returns: A list of annotations if successful, else Fail if an invalid "type" argument or no annotations are available
Notes:
If the annotation text is empty then "Annotation ?" or "Comment ?" is used for annotations and comments respectively
Annotations are ordered by time since the start of recording

Command: $stream annotations table
Description: Returns a table of all annotations
Version: 2
See also: $stream annotations list
Arguments
Argument: type
Description: Specifies the type of annotations. Options: [all, annotations, comments]. The default is "all"
Index: 0
Type: STRING
Default value: all
Acceptable values: [all, annotations, comments]
Argument: timeFormat
Description: Specifies the time format. Options: [nS, uS, mS, S, HMS]. The default is "S"
Index: 1
Type: STRING
Default value: S
Acceptable values: [nS, uS, mS, S, HMS]
Returns: A table of annotations if successful, else Fail if an invalid "type" or time argument or no annotations are available
Notes:
If the annotation text is empty then "Annotation ?" or "Comment ?" is used for annotations and comments respectively
Annotations are ordered by time since the start of recording

Command: $stream auto annotation
Description: Automatically adds an annotation
Version: 2
See also: $annotate, $comment, $stream comment add
Arguments
Argument: group
Description: Channel group
Index: 0
Type: STRING
Default value: NONE
Argument: channel
Description: Channel name
Index: 1
Type: STRING
Default value: NONE
Argument: digitalCondition
Description: For digital trigger conditions and either "On Rising" or "On Falling"
Index: 2
Type: STRING
Default value: Not Specified
Acceptable values: [On Rising, On Falling, Not Specified]
Argument: analogCondition
Description: For analog conditions and either ">=" or "<="
Index: 3
Type: INT
Default value: Not Specified
Acceptable values: [>=, <=, Not Specified]
Argument: analogConditionValue
Description: For analog conditions, specifies the condition value such as 220000 for annotation triggering at 220,000mV
Index: 4
Type: STRING
Default value: NONE
Argument: countType
Description: The count type and set to one of the following: "Once", "Count" or "No Limit"
Index: 5
Type: STRING
Default value: Once
Acceptable values: [Once, Count, No Limit]
Argument: countValue
Description: For count types set to "Count" this argument specifies the maximum number of times the annotation is to be triggered such as 1 or 10 times
Index: 6
Type: STRING
Default value: 1
Argument: annotation
Description: Annotation text. Options {COUNTER} and {VALUE} insert annotation counter and signal value. Limit to 200 characters
Index: 7
Type: STRING
Default value: Annotation = {COUNTER}
Returns: OK if completed successfully, else Fail if group, channel, condition type/value, count type/value or annotation text not specified,
Examples:
$stream auto annotation group="Voltage" channel="L1" analogCondition=">=" analogConditionValue="220000" countType="Count" countValue="10" annotation="Annotation {COUNTER}"

Command: $stream channel add
Description: Creates a new channel
Version: 2
See also: $create channel
Arguments
Argument: channelName
Description: Channel name
Index: 0
Type: STRING
Default value: NONE
Argument: channelGroup
Description: Channel group
Index: 1
Type: STRING
Default value: NONE
Argument: baseUnits
Description: Base units
Index: 2
Type: STRING
Default value: NONE
Argument: usePrefix
Description: Indicates whether to use a prefix; acceptable values are yes/no
Index: 3
Type: STRING
Default value: NONE
Acceptable values: [yes, no]
Returns: OK if successful, else Fail if the custom channel/group names already exist or an error occurred creating the new channel
Notes:
A custom channel group name must be distinct from device group names

Command: $stream channel add synthetic
Description: Defines a new channel function
Version: 2
See also: $stream channel clear synthetic, $stream channel list, $stream channel remove synthetic, $stream channel table
Arguments
Argument: channel
Description: Defines the synthetic channel
Index: 0
Type: STRING
Default value: NONE
Argument: function
Description: Specifies the synthetic function
Index: 1
Type: STRING
Default value: NONE
Returns: OK if successful, else Fail if no connected device, streaming in progress or an invalid channel/function specified
Examples:
$stream channel add synthetic channel="chan(L1_RMS,V)" function="rms(100ms, chan(L1,V))"

Command: $stream channel clear synthetic
Description: Clears all created functions
Version: 2
See also: $stream channel add synthetic, $stream channel list, $stream channel remove synthetic, $stream channel table
Returns: OK if successful, else Fail if no connected device or streaming in progress

Command: $stream channel list
Description: Returns a list of created channels
Version: 2
See also: $stream channel add synthetic, $stream channel clear synthetic, $stream channel remove synthetic, $stream channel table
Arguments
Argument: channelType
Description: Defines the user or synthetic channel.  Options: [all, user, synthetic]. The default is "all"
Index: 0
Type: STRING
Default value: all
Acceptable values: [all, user, synthetic]
Returns: List of channels, else Fail if no connected device

Command: $stream channel remove synthetic
Description: Deletes a previously created channel function
Version: 2
See also: $stream channel add synthetic, $stream channel clear synthetic, $stream channel list, $stream channel table
Arguments
Argument: channel
Description: Specifies the synthetic channel
Index: 0
Type: STRING
Default value: NONE
Returns: OK if successful, or Fail if no device connected, streaming in progress or an invalid channel specified
Examples:
$stream channel remove synthetic channel="chan(L1_RMS,V)"

Command: $stream channel table
Description: Returns XML of function definitions
Version: 2
See also: $stream channel add synthetic, $stream channel clear synthetic, $stream channel list, $stream channel remove synthetic
Arguments
Argument: channelType
Description: Defines the user or synthetic channel.  Options: [all, user, synthetic]. The default is "all"
Index: 0
Type: STRING
Default value: all
Acceptable values: [all, user, synthetic]
Returns: Table of channels, else Fail if no connected device

Command: $stream channels
Description: Returns details of the current channels
Version: 2
See also: $channels
Returns: A list of channels in the format: "channelName groupName baseUnits", such as "12V voltage mV"

Command: $stream comment add
Description: Adds a comment
Version: 2
See also: $annotate, $comment, $stream annotation add
Arguments
Argument: time
Description: Comment time
Index: 0
Type: STRING
Default value: NONE
Argument: text
Description: Comment string
Index: 1
Type: STRING
Default value: NONE
Argument: extraText
Description: Additional comment text
Index: 2
Type: STRING
Default value: NONE
Argument: yPosition
Description: y position percentage on screen; range: [0:100]
Index: 3
Type: INT
Default value: 100
Argument: type
Description: Type string used when assigning colour and text colour
Index: 4
Type: STRING
Default value: Type2
Argument: colour
Description: Colour in hex format. The default is #FFFF00, which equates to yellow
Index: 5
Type: STRING
Default value: #FFFF00
Argument: textColour
Description: Text colour in hex format. The default is #FFFF00, which equates to yellow
Index: 6
Type: STRING
Default value: #FFFF00
Argument: timeFormat
Description: Time format ["elapsed", "unix"]. The default is "elapsed"
Index: 7
Type: STRING
Default value: elapsed
Acceptable values: [elapsed, unix]
Returns: OK if completed successfully, else Fail if the command did not process correctly or an invalid time is specified
Notes:
Time can be either an elapsed time or Unix time, determined by the timeFormat argument which is set to elapsed time by default
Examples:
$stream comment add 10.25S Comment1
$stream comment add 11000mS Comment2
$stream comment add 00:00:12 Comment3

Command: $stream data add
Description: Adds a channel/group value at a specified time
Version: 2
See also: $log
Arguments
Argument: channel
Description: Channel
Index: 0
Type: STRING
Default value: NONE
Argument: group
Description: Group
Index: 1
Type: STRING
Default value: NONE
Argument: time
Description: Time
Index: 2
Type: INT
Default value: NONE
Argument: value
Description: Value
Index: 3
Type: FLOAT
Default value: NONE
Argument: timeFormat
Description: Time format ["elapsed", "unix"]. The default is "elapsed"
Index: 4
Type: STRING
Default value: elapsed
Acceptable values: [elapsed, unix]
Returns: OK if successful, else Fail if an invalid group/channel or time are specified
Notes:
Format: channel group time value timeFormat
Time can be either an elapsed time or Unix time, determined by the timeFormat argument which is set to elapsed time by default
To indicate the end marker of an interval then set the value to 'endSeq'; eg : myStream.addDataPoint(channelName, groupName, 'endSeq')

Command: $stream export
Description: Saves to a given format
Version: 2
See also: $save csv, $stream import
Arguments
Argument: file
Description: The file path to save the export
Index: 0
Type: STRING
Default value: NONE
Argument: maxLines
Description: Maximum number of lines
Index: 1
Type: STRING
Default value: all
Argument: lineTerminator
Description: Indicates whether a line terminator; acceptable values: [yes/no]
Index: 2
Type: STRING
Default value: yes
Acceptable values: [yes, no]
Argument: delimiter
Description: Value separator; eg ,
Index: 3
Type: STRING
Default value: ,
Acceptable values: ["\t", ";", ",", " "]
Argument: fileType
Description: File type; eg CSV
Index: 4
Type: STRING
Default value: csv
Argument: channels
Description: List of channels to export; eg "voltage:5v,current:12v" with the default set to "all"
Index: 5
Type: STRING
Default value: all
Argument: defaultDirectory
Description: Sets the default csv file directory to save all exported files
Index: 6
Type: STRING
Default value: NONE
Returns: OK if successful, else Fail if an error occurred saving, an invalid file or argument was specified
Notes:
Format: $save csv file path/file name ALL|Max lines per file yes/no ",", "\t", ";", " "
Argument file is optional and if not specified then a file name is assigned and of the form: 
If no fileType file is specified then the following is assigned: .../path to recording directory/fileType+Export+yyyyMMddHHmmss.fileType
By default all channels are exported but can be filtered using argument "channel"

Command: $stream export status
Description: Checks the status of export operation.
Version: 2
Returns: "COMPLETE" if complete or "IN PROGRESS" if in progress
Notes:
Returns "COMPLETE" if the export is complete, otherwise returns "IN PROGRESS".

Command: $stream import
Description: Imports from a given format
Version: 2
See also: $convert csv, $stream export
Arguments
Argument: file
Description: The file path to be imported
Index: 0
Type: STRING
Default value: NONE
Argument: fileType
Description: File type; eg CSV
Index: 1
Type: STRING
Default value: csv
Argument: delimiter
Description: Value separator; eg ,
Index: 2
Type: STRING
Default value: ,
Acceptable values: ["\t", ";", ",", " "]
Argument: minTime
Description: The minimum time value; eg 100mS. The default value of 0nS indicates reading from the start
Index: 3
Type: STRING
Default value: 0nS
Argument: maxTime
Description: The maximum time value; eg 800mS. The default value of -1nS indicates reading to the end
Index: 4
Type: STRING
Default value: -1nS
Argument: offsetTime
Description: The offset time value; eg 10mS. The default value of 0nS indicates there is no offset
Index: 5
Type: STRING
Default value: 0nS
Argument: channels
Description: List of channels to import; eg "voltage:5v,current:12v" with the default set to "all"
Index: 6
Type: STRING
Default value: all
Argument: timeFormat
Description: Time format ["elapsed", "unix"]. The default is "elapsed"
Index: 7
Type: STRING
Default value: elapsed
Acceptable values: [elapsed, unix]
Returns: OK if successful, else Fail if an invalid file
Notes:
The file must contain an extension that matches the one specified in fileType. This is used as a check.
Examples:
$stream import file="C:\Temp\data.csv"
$stream import file="C:\Temp\data.csv" channels="voltage:12v,current:12v"
$stream import file="C:\Temp\data.csv" channels="voltage:12v,current:12v" minTime=1S maxTime=10S

Command: $stream read
Description: Reads data between from a given start time and either end time or number of records
Version: 2
See also: $read
Arguments
Argument: startTime
Description: Start time
Index: 0
Type: INT
Default value: NONE
Argument: endTime
Description: End time
Index: 1
Type: STRING
Default value: NONE
Argument: timeFormat
Description: Time format ["elapsed", "unix"]. The default is "elapsed"
Index: 2
Type: STRING
Default value: elapsed
Acceptable values: [elapsed, unix]
Returns: Read data if successful, else Fail if no connected device, or an invalid time argument
Notes:
Time can be either an elapsed time or Unix time, determined by the timeFormat argument which is set to elapsed time by default
Examples:
$stream read 0 l100

Command: $stream record
Description: Starts streaming
Version: 2
See also: $start stream
Arguments
Argument: file
Description: File specifier of the form /dir/dir/dir/recordingName. Any '\' characters are replaced with '/' character
Index: 0
Type: STRING
Default value: NONE
Argument: duration
Description: Specifies the stream duration in seconds.
Index: 1
Type: INT
Default value: NONE
Returns: OK if successful, else Fail if no connected device is found, if a stream is already running, a stream did not start or an invalid recording directory is specified

Command: $stream record duration
Description: Returns the total recording time
Version: 2
See also: $stream start time, $stream stop time
Arguments
Argument: timeFormat
Description: Specifies the time format. Options: [nS, uS, mS, S, HMS]. The default is "S"
Index: 0
Type: STRING
Default value: S
Acceptable values: [nS, uS, mS, S, HMS]
Returns: Recording duration, else Fail if not connected to a device
Notes:
A value of -1 is returned if streaming has not commenced

Command: $stream start time
Description: Returns the time that streaming started
Version: 2
See also: $stream record duration, $stream stop time
Arguments
Argument: timeFormat
Description: Specifies the time format. Options: [nS, uS, mS, S, HMS]. The default is "S"
Index: 0
Type: STRING
Default value: S
Acceptable values: [nS, uS, mS, S, HMS]
Returns: Time stream started, else Fail if not connected to a device
Notes:
A value of -1 is returned if streaming has not commenced

Command: $stream state
Description: The current state of streaming
Version: 1
Returns: One of the following: Stopped, Starting, Recording or Stopping

Command: $stream stats export
Description: Saves the statistics to a given format
Version: 2
See also: $stats to csv
Arguments
Argument: file
Description: Single argument string specifying file path of form: *STREAM_DIR*+"statsGrid"+yyyyMMddHHmmss+".csv" - Path for data to be saved to.
Index: 0
Type: STRING
Default value: NONE
Argument: fileType
Description: Type of export file; eg .csv
Index: 1
Type: STRING
Default value: csv
Returns: OK if successful, else if an error occurred creating the file parent directory

Command: $stream stats export status
Description: Checks the status of the stats export operation.
Version: 2
Returns: "COMPLETE" if completed, or "IN PROGRESS" if in progress

Command: $stream stats table
Description: Returns statistics
Version: 2
See also: $get custom stats range, $get stats
Arguments
Argument: startTime
Description: Start time. Time format is either HMS or a (time,unit) pair; eg 100mS
Index: 0
Type: INT
Default value: NONE
Argument: endTime
Description: End time. Time format is either HMS or a (time,unit) pair; eg 100mS
Index: 1
Type: INT
Default value: NONE
Argument: timeFormat
Description: Time format ["elapsed", "unix"]. The default is "elapsed"
Index: 2
Type: STRING
Default value: elapsed
Acceptable values: [elapsed, unix]
Returns: Table of statistics, or Fail of no device connected or an invalid time argument
Notes:
Time can be either an elapsed time or Unix time, determined by the timeFormat argument which is set to elapsed time by default

Command: $stream stop
Description: Stops streaming
Version: 2
See also: $stop stream
Returns: OK if successful, else Fail if not currently streaming

Command: $stream stop time
Description: Returns the time that streaming stopped
Version: 2
See also: $stream record duration, $stream start time
Arguments
Argument: timeFormat
Description: Specifies the time format. Options: [nS, uS, mS, S, HMS]. The default is "S"
Index: 0
Type: STRING
Default value: S
Acceptable values: [nS, uS, mS, S, HMS]
Returns: Time stream stopped, else Fail if not connected to a device
Notes:
A value of -1 is returned if streaming has not commenced

Command: $take snapshot
Description: Takes a snapshot of the chart, timeline and channels windows
Version: 1
See also: $chart snapshot
Arguments
Argument: type
Description: Type of snapshot to take consisting of a comma separated list of options: [all, chart, timeline, key]
Index: 0
Type: STRING
Default value: all
Returns: OK if successful, else Fail if an invalid type is specified
Examples:
$take snapshot --> default and captures chart+timeline+key
$take snapshot all --> same as default
$take snapshot chart --> chart only
$take snapshot chart,key --> chart+key
$take snapshot chart,timeline --> chart+timeline

Command: $version
Description: Version number
Version: 1
Returns: Version number


*** Command Index ***

$annotate ~ Adds an annotation

$channels ~ Returns details of the current channels

$chart channel hide ~ Hides a channel

$chart channel show ~ Shows a channel

$chart reposition ~ Sets the chart main view to the specified start and end times

$chart snapshot ~ Takes a snapshot of the chart, timeline and channels windows

$comment ~ Adds a comment

$connect ~ Connects to a specified device

$connected ~ Returns the connected device ID

$convert csv ~ Converts one or more CSV files [.csv] to a QPS recording [.qps]

$create channel ~ Creates a new channel

$debug list commands ~ Returns a list of commands

$echo ~ Echo command

$get custom stats range ~ Returns statistics for a specified range

$get stats ~ Returns statistics

$help ~ Help command

$hide channel ~ Hides a channel

$list ~ Lists available devices

$list -details ~ Lists available device details

$log ~ Adds a channel/group value at a specified time

$module connect ~ Connects to a specified device

$module disconnect ~ Disconnects the current connection

$module list ~ Lists available devices

$module list details ~ Lists available device details

$module name ~ Returns the connected device ID

$module scan ~ Scans for available devices

$open recording ~ Opens a recording

$progress check ~ Checks the progress of a specific QPS task

$qis status ~ Reports the connection status of QIS

$qps hide ~ Hides the QPS application

$qps show ~ Shows the QPS application

$read ~ Reads data between a given start time and either end time or number of records

$save csv ~ Saves to CSV format

$scan ~ Scans for available devices

$show channel ~ Shows a channel

$shutdown ~ Shuts down QPS

$start stream ~ Starts streaming

$stats to csv ~ Saves the statistics to CSV format

$stop stream ~ Stops streaming

$stream annotation add ~ Adds an annotation

$stream annotations list ~ Returns a list of all annotations

$stream annotations table ~ Returns a table of all annotations

$stream auto annotation ~ Automatically adds an annotation

$stream channel add ~ Creates a new channel

$stream channel add synthetic ~ Defines a new channel function

$stream channel clear synthetic ~ Clears all created functions

$stream channel list ~ Returns a list of created channels

$stream channel remove synthetic ~ Deletes a previously created channel function

$stream channel table ~ Returns XML of function definitions

$stream channels ~ Returns details of the current channels

$stream comment add ~ Adds a comment

$stream data add ~ Adds a channel/group value at a specified time

$stream export ~ Saves to a given format

$stream export status ~ Checks the status of export operation.

$stream import ~ Imports from a given format

$stream read ~ Reads data between from a given start time and either end time or number of records

$stream record ~ Starts streaming

$stream record duration ~ Returns the total recording time

$stream start time ~ Returns the time that streaming started

$stream state ~ The current state of streaming

$stream stats export ~ Saves the statistics to a given format

$stream stats export status ~ Checks the status of the stats export operation.

$stream stats table ~ Returns statistics

$stream stop ~ Stops streaming

$stream stop time ~ Returns the time that streaming stopped

$take snapshot ~ Takes a snapshot of the chart, timeline and channels windows

$version ~ Version number

