API Commands
Appendix A
A-2
ChartScan User’s Manual
Command Syntax
Commands are identified by the following syntax formats:
•
A single letter (
A
through
Z
)
•
A single letter (
A
through
Z
) followed by a pound sign (
#
)
•
An at-sign (
@
)
•
An asterisk (
*
) followed by a single letter (
A
through
Z
)
In addition, the commands are governed by the following syntax rules
.
Case Sensitivity
Commands may be entered in upper or lower case.
For example,
A1,1X
is interpreted the same as
a1,1X
.
Spaces
White space (which consists of all ASCII values of 32 and below, and includes the space, tab, new-line
and carriage-return characters) is generally allowed anywhere between commands and command
arguments. However, white space is
not
allowed in the middle of command options.
For example,
1 2 3
is
not
the same as
123
.
Multiple Parameters
If more than one parameter is used for a command, they
must
be separated by a comma or white space.
For example:
Q4,1,1,0,0
or
Q 4 1 1 0 0
is appropriate.
Command Strings
Commands may be sent individually or in a string with other commands.
For example, the following four lines of a program:
PRINT#1,"OUTPUT07;C1,1X"
PRINT#1,"OUTPUT07;A1,1X"
PRINT#1,"OUTPUT07;C2,2X"
PRINT#1,"OUTPUT07;A2,2X"
have the same effect as the single line:
PRINT#1,"OUTPUT07; C1,1 A1,1 C2,2 A2,2 X"
Execute Command
Deferred commands are interpreted and processed as they are received. They require the Execute (
X
)
command to be issued in order to be executed. If multiple system commands are used in the same
string, each use of the command must be followed by the Execute (
X
) command. However, immediate
commands do not require an Execute command to be processed. For more detail on deferred and
immediate command types, refer to the next section on “Command Interpretation” in this chapter.
For example, to clear the SRQ mask and then set it for SRQ on trigger:
PRINT#1, OUTPUT10; "M000 X M002 X"
To configure channels 1 through 32 for temperature and 33 through 64 for volts, using one command
string:
PRINT#1,"OUTPUT07;C1-32, 1C33-64, 11X"
Содержание OMB-CHARTSCAN 1400
Страница 1: ...August 2002 OMB CHARTSCAN 1400 Portable Data Recorder p n OMB 483 0901 Rev 3 1...
Страница 6: ...iv ChartScan User s Manual...
Страница 24: ...ChartScan User s Manual...
Страница 32: ...2 8 General Information ChartScan User s Manual Notes...
Страница 56: ...3 24 ChartScan User s Manual Notes...
Страница 117: ...ChartScan User s Manual Calibration 6 13 1 Connect an applicable calibration harness to each card Refer to figure below...
Страница 124: ...6 20 Calibration ChartScan User s Manual...
Страница 126: ...A ii ChartScan User s Manual...
Страница 136: ...API Commands Appendix A A 10 ChartScan User s Manual Notes...
Страница 176: ...API Commands Appendix A A 50 ChartScan User s Manual...
Страница 230: ...Appendix C Registers Data Formats Queries ChartScan User s Manual C 13...
Страница 237: ...Registers Data Formats Queries Appendix C C 20 ChartScan User s Manual Notes...
Страница 257: ...E 2 ChartScan User s Manual Notes...
Страница 265: ...ASCII Code Summary Appendix F F 8 ChartScan User s Manual Notes...
Страница 269: ...Abbreviations Appendix H H 2 ChartScan User s Manual Notes...
Страница 271: ...ChartScan User s Manual...