DIGital Subsystem
Digital commands program the digital control port on the rear panel of the instrument.
[SOURce:]
DIGital
:INPut
:DATA? Reads the state of the digital control port.
:OUTPut
:DATA <value> Sets the state of the digital control port.
:PIN<1-7>
:FUNCtion <function> Sets the function of the pins. DIO |DINPut |EXPRession<1-8>
|FAULt |INHibit |ONCouple |OFFCouple |TOUTput |TINPut
:POLarity POSitive|NEGative Sets the polarity of the pins.
:TOUTput
:BUS
[:ENABle] 0|OFF|1|ON Enables or disables BUS triggers on digital port pins.
[SOURce:]DIGital:INPut:DATA?
Reads the state of the digital control port. Returns the binary-weighted value of the state of pins 1
through 7 in bits 0 through 6 respectively.
Parameter Typical Return
(none) <bit value>
Reads the state of the digital control port: DIG:INP:DATA?
[SOURce:]DIGital:OUTPut:DATA <value>
[SOURce:]DIGital:OUTPut:DATA?
Sets the state of the digital control port. This only affects the pins whose function has been set to
Digital IO operation. The port has seven signal pins and a digital ground pin. In the binary-weighted
value that is written to the port, the pins are controlled according to the following bit assignments:
Pin 1 2 3 4 5 6 7
Bitnumber 0 1 2 3 4 5 6
Decimal value 1 2 4 8 16 32 64
Bit values corresponding to digital port pins that are not configured as DIO are ignored.
Parameter Typical Return
0 – 127, *RST 0 <bitvalue>
Programs pins 1, 3, and 5 on: DIG:OUTP:DATA?
Keysight N6900/N7900 Series Operating and Service Guide 222
6 SCPI Programming Reference