Command syntax, Command syntax…… 42 – Measurement Computing Digital488/80A User Manual
Page 48
![background image](https://www.manualsdir.com/files/797791/content/doc048.png)
Command Syntax
Operation of the Digital488/80A is accomplished using a set of commands that configure the entire unit.
The syntax rules for using the commands are listed below.
Each command consists of one alphabetic character followed by one number value. The alphabetic
character is referred to as the command, and the number value following the command is the command
parameter.
•
Examples
F5 F
specifies the Format command.
5
is the parameter which specifies the high-speed binary format.
L0 L
specifies the Buffer command.
0
is the parameter which clears the data buffer.
• Commands are interpreted and processed as they are received but are not executed until the Execute
(
X
) command is issued. (The exceptions to this rule are commands issued with the Query (
?
)
parameter which do not need to be followed by the Execute (
X
) command.)
Examples
K0X
This command (enable EOI) will be executed immediately upon receipt of the
X
.
K0
The command will be interpreted, but not executed.
X
Upon receipt of the
X
, the End Or Identify (EOI) command will be executed.
• ASCII data (formats
F0
through
F3
) specified to be output are preceded by the Data (
D
) command
character and followed by the
Z
suffix.
Example
D55ZX
The ASCII data output specified is 55.
• Commands may be entered in upper or lower case.
Example
A1
These 2 commands are interpreted the same way.
a1
• Spaces between commands and parameters are ignored.
Examples
F5
This is interpreted the same way as
F 5
.
S100X
This is interpreted the same as
S 1 0 0 X
.
• Commands may be sent individually or in a string with other commands.
Example
PRINT#1,"OUTPUT08;C0X"
PRINT#1,"OUTPUT08;P1X"
PRINT#1,"OUTPUT08;S2X"
These three lines of a program would have the same effect as
the single line below:
PRINT#1,"OUTPUT08;C0 P1 S2 X"
• Due to the structure of the command interpreter, each command may be issued only once within a
string. However, the same command may be issued more than once in a string if each usage of the
command is followed by the Execute (
X
) command.
Example
PRINT#1,
"OUTPUT08;P3 S4 X P5 S6 X"
On Channel 0, you can save Port 3 as Configuration 4 and Port 5
as Configuration 6 using one command string as shown.
42 Digital488/80A Commands
967695
Digital488/80A User's Manual