
Section 6: SCPI command reference
Model 2461 Interactive SourceMeter® Instrument Reference Manual
6-38
2461-901-01 A/November 2015
Example
:DIG:READ?
Assume lines 2, 4, and 6 are set high when
the I/O port is read.
Output:
42
This is binary 101010
Also see
(on page 3-95)
Digital I/O port configuration
(on page 3-87)
:DIGital:WRITe <n>
This command writes to all digital I/O lines.
Type
Affected by
Where saved
Default value
Command only
Not applicable
Not applicable
Not applicable
Usage
:DIGital:WRITe <n>
<n>
The value to write to the port (
0
to
63
)
Details
This function writes to the digital I/O port by setting the binary state of each digital line from an integer
equivalent value.
The binary representation of the value indicates the output pattern to be written to the I/O port. For
example, a value of 63 has a binary equivalent of 111111 (all lines are set high); a
data
value of 42
has a binary equivalent of 101010 (lines 2, 4, and 6 are set high, and the other 3 lines are set low).
An instrument reset does not affect the present states of the digital I/O lines.
All six lines must be configured as digital control lines. If not, this command generates an error.
Example
:DIG:WRIT 63
Sets digital I/O lines 1 through 6 high (binary
111111).
Also see
(on page 3-95)
Digital I/O port configuration
(on page 3-87)