Measurement Computing DAC488 v.1 User Manual
Page 58

52 DAC488 Commands
DAC488 User’s Manual
•
Each command consists of one alphabetic character followed by one or two numbers. The alphabetic
character is referred to as the command and the number(s) following the command are the command
parameters. Multiple parameters must be separated by a comma.
Examples
A0
A
specifies the Autorange command.
0
is the parameter which specifies autorange disabled.
F0,20
F
specifies the Buffer Definition command.
0
is a parameter which specifies the starting location as location 0.
20
is another parameter which specifies size of this particular buffer as 20 (20 locations).
•
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
and the Trigger On (
@
) command which do not need to be followed by the Execute (
X
) command.)
Examples
A0X
This command (disable autorange) will be executed immediately upon receipt of the
X
.
A0
The command will be interpreted,but not executed.
X
Upon receipt of the X, the Autorange command will be executed.
•
Voltage values may be specified using scientific notation. (The
E
may be in upper or lower case).
Examples
V5.6
These 4 commands specify the same voltage of 5.6 volts.
V0.56E1
V56E-1
V.056e+2
•
If bits are used to specify a voltage, the numeric bit value is preceded by a number sign (
#
).
Examples
R3V#4000
The voltage specified is 4000 x 2.5 mV = 10 volts.
R3V#-3356
The voltage specified is -3356 x 2.5 mV = -8.39 volts.
•
Hexadecimal values are preceded by a dollar sign (
$
) and followed by a
Z
.
Example
R3V#$ACDZ
The voltage specified is 2765 x 2.5 mV = 6.91 volts. (
$ACD
= 2765)
•
Commands may be entered in upper or lower case.
Example
A0
These 2 commands are interpreted the same way.
a0
•
Spaces between commands and parameters are ignored.
Examples
P1
This is interpreted the same way as
P 1
.
F0,20X
This is interpreted the same as
F 0 , 2 0 X
.
•
Commands may be sent individually or in a string with other commands.
Example
PRINT#1,"OUTPUT09;C0"
PRINT#1,"OUTPUT09;P1"
PRINT#1,"OUTPUT09;V2X"
These three lines of a program would have the same effect as
the single line below:
PRINT#1,"OUTPUT09;C0 P1 V2 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,
"OUTPUT09;P1 V3 X P2 V5 X"
You can program port 1 for 3 volts and port 2 for 5 volts using
one command string as shown.