Command summary – Measurement Computing DAC488 v.1 User Manual
Page 60

54 DAC488 Commands
DAC488 User’s Manual
Command Summary
The following summary presents all 26 of the DAC488 system and port commands in alphabetical order
according to their command syntax.
Command
Syntax
Description
@
Trigger On Command
(System Command)
@
Command trigger. Triggers the ports specified in the Command
Trigger Mask (
T
). This command does NOT require the
Execute (
X
) command to operate.
A
Autorange
An
Where
n = 0
or
1
.
(Port Command)
A0
Disable autoranging for selected DAC port.
A1
(Default) Enable autoranging for selected DAC port.
A?
Returns current autorange setting.
B
Buffer Data
Brng,volts
Write volts value in buffer location for selected DAC port.
(Port Command)
Brng,#bits
Write decimal bit value in buffer location for selected DAC port.
Brng,#$hexZ
Write hexadecimal bit value in buffer location for selected DAC
port.
B?
Returns the range and value at the location pointer for the
selected DAC port in the format specified by the Output
Format (
On
) command.
Notes:
Using this command causes the location counter to increment
after the value has been written to or read from the buffer.
Factory default buffer values are zero, range 0.
rng
= 0-3,
volts
= number without a V prefix.
C
Control Mode
Cn
Where
n = 0, 1, 2,
or
3
(Port Command)
C0
(Default) Direct mode trigger on Execute (
X
) command.
C1
Indirect mode, trigger on
GET
, External trigger or
@
.
C2
Stepped mode, trigger on
GET
, External trigger or
@
.
C3
Waveform mode, trigger on
GET
, External trigger or
@
.
C?
Returns current control mode for selected port.
Notes:
Selecting a control mode stops prior mode activity and rearms
port for selected mode.
D
Digital Output
Dval
Outputs the value on the digital output port.
(System Command)
D?
Returns the current value of digital output port.
Notes:
The default output value is 0. (
val
= 0 to 255)
E?
Query Error Status
(System Command)
E?
Returns error status code which indicates the last error
encountered. It returns:
•
E0
if No Error has occurred.
•
E1
if Unrecognized command.
•
E2
if Invalid Command Parameter.
•
E3
if Command Conflict Error.
•
E4
if Calibration switch not closed.
•
E5
if Non-Volatile RAM error.
Notes:
Upon reading error status, error is cleared.
F
Buffer Definition
(Port Command)
Fstart,size
Specifies starting location and number of locations used in the
internal buffer for the selected port. Range of both values is
0 to 8191. See Notes.
F?
Returns the starting location and number of locations used in
the defined buffer.
Notes:
The sum of
start+size
must be less than 8192. The
default values are 0,1024; 1024,1024; 2048,1024; and
3072,1024 for ports 1 through 4 respectively.