11-6 Digital I/O, Analog Outputs, and External Feedback
Perform the following steps to set the digital output pattern from the front panel:
1. Press SHIFT and then CONF-LIM to access the limits menu.
2. Press the
or until “LIMIT:PASS” is displayed.
3. Press ENTER. The present digital output pattern value will be displayed.
4. Use the
, , and keys to display the desired output pattern value (0 to 15), and press
ENTER.
5. Press EXIT to return to the normal display state.
SCPI programming — digital output pattern
Programming example
The following command sequence sets output lines 4 and 2 HI, and output lines 3 and 1 LO.
SOUR2:TTL 10 ‘ Set output lines 4 and 2 HI.
SOUR2:TTL? ‘ Request output pattern value.
Table 11-1
SCPI commands — digital outputs
Command Description Default
SOURce2 SOURce2 Subsystem:
:TTL <NRf> or <NDN> Specify 4-bit digital output pattern (see “Parameter Values”). 15
:TTL? Query the digital output pattern. The value returned is in the
decimal format.
Parameter Values (see Note):
<NRf> = 0 to 15 Decimal format
<NDN> = #Bxxxx Binary format (each x = 1 or 0)
= #Hx Hexadecimal format (x = 0 to F)
= #Qxx Octal format (x = 0 to 17)
Note: The <NDN> parameter type can be used to set the output pattern using non-decimal values. Convert the decimal
value to its binary, hexadecimal or octal equivalent and include the appropriate header (#B, #H or #Q). For example,
to set output lines 4 and 2 HI using the binary format, send SOURce2:TTL #B1010. More information about the
<NDN> parameter type is provided in Section 13 (see “Programming Enable Registers”).