141
Chapter 5 Remote Interface Reference
Digital I/O Commands
4
5
SOURce:DIGital
:CONTrol:POLarity <slot>,<0|1|POS|NEG>
:CONTrol:POLarity? <slot>
:FLAG:POLarity <slot>,<0|1|POS|NEG>
:FLAG:POLarity? <slot>
:IO:POLarity <slot>,<0|1|POS|NEG>
:IO:POLarity? <slot>
These commands set the polarity of the three handshake lines. The
CONTrol portion of the command works with the PCTL (Peripheral
control) line. The FLAG portion of the command works with the PFLG
(peripheral flag) line. The IO portion of the command works with the I/O
direction line.
The slot parameter is a decimal ranging from 1 to 5. These commands do
not work with the built-in 4-bit digital I/O port (0).
Following power on or a reset (*RST) command, the polarities are set to 0
or POSitive.
The query versions of these commands return one of two strings: POS or
NEG.
SOURce:DIGital:DATA
[:<BYTE|WORD|LWORD>]:POLarity <port>,<0|1|POS|NEG>
[:<BYTE|WORD|LWORD>]:POLarity? <port>
This command sets the data line polarity for the specified port. The
current state of the data lines is not changed by this command.
Following power on or a reset (*RST) command, the polarity is set to 0 or
POS.