SOURce:DIGital:STATe?
SOURce:DIGital:STATe?
Syntax
SOURce:DIGital:STATe? (@<ch_list>)
Description
This command returns the status (input or output) of the specified digital channels.
Used With:
- 34907A Multifunction Module (digital I/O channels only)
Parameters
Name Type Range of Values Default Value <ch_list> Channel List One or more digital I/O channels, as shown:
(@301) - channel 01 on the module in slot 300.
(@101:102,201,302) - channels 01 and 02 on the modules on slot 100, channel 01 on the module in slot 200, and channel 02 on the module in slot 300.
This is a required parameter.
Remarks
- A channel is set as an output channel when you send a SOURce:DIGital:DATA[:{BYTE|WORD}] command.
- A channel is set as an input channel when you place it in a scan list or send a [SENSe:]DIGital:DATA:{BYTE|WORD}? command.
Return Format
The query returns 0 if the specified channel is an input channel or 1 if the channel is an output channel. Multiple responses are separated by commas.
Example
The following query returns the input/output state of channels 01 and 02 on the module in slot 300. In this case, both channels are configured for output.
SOUR:DIG:STAT? (@301,302)
Typical Response: 1,1