Specifications
Chapter 2 Command System RIGOL
M300 Programming Guide 2-187
SOURce:DIGital:STATe?
Syntax
SOURce:DIGital:STATe? (@<ch_list>)
Description
Query the status (input or output) of the specified DIO channels.
Parameters
Name
Type
Range
Default
<ch_list>
Channel
List
One or more channels (only for DIO channels), the
rules are as follows:
(@101): channel 01 on the module in Slot1;
(@101:103): channel 01 through 03 on the module
in Slot1;
(@101:103,301): channel 01 through 03 on the
module in Slot1 and channel 01 on the module in
Slot3.
None
Explanation The SOURce:DIGital:DATA[:BYTE]?, SOURce:DIGital:DATA:DWORd or
SOURce:DIGital:DATA:WORD
command sets the specified DIO channels as the output
terminals.
The [SENSe:]DIGital:DATA[:BYTE]?, [SENSe:]DIGital:DATA:WORD? or
[SENSe:]DIGital:DATA:DWORd? Command sets the specified DIO channels as the
input terminals. Adding the DIO channels into the scan list will also set the DIO
terminals as the input terminals.
The DIO channels will be configured as 8-bit input terminals after a Factory Reset
(send the
*RST command) or an Instrument Preset (send the SYSTem:PRESet
command). A Card Reset (send the
SYSTem:CPON command) does not affect the
current DIO channel status.
Return
Format
The query returns 0 (digital input) or 1 (digital output). Multiple return values are separated
by commas.
Example SOUR:DIG:STAT? (@101:104)
The query returns 1,1,0,0.
Related
commands
SOURce:DIGital:DATA[:BYTE]
SOURce:DIGital:DATA:WORD
SOURce:DIGital:DATA:DWORd
[SENSe:]DIGital:DATA[:BYTE]?
[SENSe:]DIGital:DATA:WORD?
[SENSe:]DIGital:DATA:DWORd?