Queries; Query (?) Commands; U Status Commands - Omega Engineering OMB-CHARTSCAN 1400 User Manual

Portable data recorder
Table of Contents

Advertisement

Registers, Data Formats, & Queries

Queries

ChartScan provides many ways to query the unit for specific information. Most commands have a
corresponding query command which responds with the configuration or mode of a previously executed
command. In addition, the
operation) to return information about various ChartScan conditions.

Query (?) Commands

Most commands have a corresponding query command formed by appending a question mark (
command letter. Query commands place their responses into the output queue until the controller retrieves
them. They respond with the present configuration or mode of a previously executed command. When
appropriate, the response from a query command is in the form of a command string which, if it were executed,
would put the unit into the configuration it was in when the query was executed. For instance, the response to
the User Terminator query command
(where 0< user <255)
Vuser
This response is in the form of the User Terminator (
the User Terminator to the same value that it had when the query was issued. Query responses are always fixed-
length strings in a pre-defined format.
Any number of query commands can be combined into one string to create a specialized status command that
responds with only the information of interest for a given application. Query commands are immediate; in other
words, their command responses are generated as soon as they are interpreted and before any other commands,
including the Execute (
PRINT#1,"OUTPUT07; V1 X V? X"
PRINT#1,"ENTER07"
INPUT A$
PRINT A$
PRINT#1,"OUTPUT07; V0 X V? X"
PRINT#1,"ENTER07"
INPUT A$
PRINT#1,"OUTPUT07; V4 V? X"
PRINT#1,"ENTER07"
INPUT A$
PRINT A$
PRINT#1,"OUTPUT07; V? X"
PRINT#1,"ENTER07"
INPUT A$
Note: Although query commands generate their response as soon as they are interpreted, they must still be
followed by an Execute (X) command for proper termination. For more information on command
execution, refer to the

U Status Commands

Status commands are used to return information about various ChartScan conditions. The unit's status may be
read at any time with no interference to normal operation. Any error conditions, except Calibration Errors, are
cleared after the status string is read by the controller. The Calibration Errors are cleared when the unit is
calibrated.
Status strings are returned when ChartScan is next addressed to Talk. The terminators used and the use of the
End or Identify (EOI) line can be changed with the
If ChartScan is configured to trigger on Talk, requesting a status report (U command) will not cause the unit to
trigger.
The following table outlines information available through U commands. See the Command Reference section
for details and examples.
C-10
Status commands can be used at any time (without interfering with normal
U
is in the form:
V?X
) command. For example:
X
' Get the response of current User Terminator
' Retrieve response..
' Screen shows V1
' Change User Terminator and get response.
' Retrieve response.
' Screen shows V0
' Change User Terminator and Get response - No intermediate X command.
' Retrieve response...
' Screen shows V0 User Terminator.
executed before V4 since V? is an immediate and V4 is a deferred
command.
' Get User Terminator response
' Retrieve response..
' Screen shows new User Terminator — V4.
command in Appendix A.
X
) command and, if it is sent to the ChartScan, it would set
V
Response is still V0 because V? was
commands.
Q
Appendix C
) to the
?
ChartScan User's Manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

Omb-chartscan-1400

Table of Contents