D - digital output, Tput…… 63 – Measurement Computing DAC488 v.1 User Manual
Page 69

DAC488 User’s Manual
DAC488 Commands 63
D - Digital Output
TYPE
System Command
SYNTAX
Dval
Outputs the value on the digital output port, where
val
is a
value between 0 and
255. The value is output in binary (sending a
D1
command will set line 1 to a
logic high level).
D?
Returns the current value of the digital output port in the format specified by the
Output Format (
On
) command.
DESCRIPTION
The Digital Output command is used to output up to 8 bits of data to the digital output port. The data will appear at the
digital output port as soon as the command is executed. There are no triggering or buffer options available when
using the digital output port. The digital input port may be read using the U5 Status command.
Note:
(1) The default output value is 0 (all digital output lines low, 0 volts). (2) All bits on the digital output port will
be affected when using this command. For example, if D1X is sent, line 1 will be set to a logic high level (+5
volts) and the other lines set to a logic low level (0 volts).
EXAMPLE
PRINT#1,"CLEAR09"
Line 1: Reset the DAC488.
PRINT#1,"OUTPUT09;D6 X"
Line 2: Set lines 2 and 3 high on the digital output port (6 = 0000
0110 binary)
PRINT#1,"OUTPUT09;D?"
Line 3: Read the programmed state of the digital output port
PRINT#1,"ENTER09"
INPUT#2,A$
PRINT A$
Line 6: Display shows: 6.