SOURce:DIGital:STATe
Syntax
SOURce:DIGital:STATe <mode>, (@<ch_list>)
SOURce:DIGital:STATe? (@<ch_list>)
Description
This command enables or disables output operations on the specified digital channels.
Used With:
34950A Digital I/O Module (digital input/output channels only)
34952A Multifunction Module (digital input/output channels only)
34959A Breadboard Module
Parameters
Name |
Type |
Range of Values |
Default Value |
<mode> |
Boolean |
{OFF|0|ON|1} |
0 (INPut) |
<ch_list>
|
Numeric
|
One or more digital output channels in the form (@sccc). 34950A: s101
through s104, s201 through s204 |
This is a required parameter
|
Remarks
Depending on the width specified (see SOURce:DIGital:DATA[:<width>] command), the channel numbering is modified as shown below. For example, if you specify the width as a 16-bit WORD on the 34950A, channels 101 and 102 are combined and addressed collectively as channel 101.
34950A |
Bank 2 |
Bank 1 |
||||||
BYTE (8 Bits): |
Ch 204 |
Ch 203 |
Ch 202 |
Ch 201 |
Ch 104 |
Ch 103 |
Ch 102 |
Ch 101 |
WORD (16 Bits): |
Ch 203 |
Ch 201 |
Ch 103 |
Ch 101 |
||||
LWORd (32 Bits): |
Ch 201 |
Ch 101 |
||||||
|
|
|
||||||
34952A |
Bank 1 |
|
||||||
BYTE (8 Bits): |
Ch 4 |
Ch 3 |
Ch 2 |
Ch1 |
|
|||
WORD (16 Bits): |
Ch 3 |
Ch 1 |
|
|||||
LWORd (32 Bits): |
Ch 1 |
|
The channel setting is stored in volatile memory and will be disabled (output OFF) when power is turned off or after a Factory Reset (*RST command).
Return Format
The query command 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.
Examples
The following program segment enables 16-bit operations on channels 101 and 103 on the 34950A in slot 3.
CONF:DIG:WIDTH WORD,(@3101,3103)
SOUR:DIG:STAT 1,(@3101,3103)
The following command queries the input/output state of channels 101 and 103 on the 34950A in slot 3. The values are transferred to the instrument's output buffer.
SOUR:DIG:STAT? (@3101,3103)
Typical Response: 1,1
The following program segment enables 8-bit output operations on channel 1 on the 34952A in slot 5.
CONF:DIG:WIDTH BYTE,(@5001)
SOUR:DIG:STAT 1,(@5001)
The following command queries the input/output state of channel 1 on the 34952A in slot 5. The value is transferred to the instrument's output buffer.
SOUR:DIG:STAT? (@5001)
Typical Response: 1