Specifications
RIGOL Chapter 2 Command System
2-140 M300 Programming Guide
[SENSe:]DIGital:LEVel
Syntax [SENSe:]DIGital:LEVel <level>,[(@<ch_list>)]
[SENSe:]DIGital:LEVel? [(@<ch_list>)]
Description Set or query the digital output level values of the specified channels (the level type is set to
USER).
Parameters
Name
Type
Range
Default
<level>
Numeric
Any numeric value between 2V and 5V.
5V
<ch_list>
Channel
List
One or more channels (only for the channel 01
through 04 of the multifunction module), 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 digital input channels are numbered as "S01" to "S04", wherein, S is the number
of the slot.
If the specified channels are configured as 32-bit digital input (send the
CONFigure:DIGital:DWORd, MEASure:DIGital:DWORd? or
[SENSe:]DIGital:DATA:DWORd? command) or output (send the
SOURce:DIGital:DATA:DWORd command), <ch_list> can only be S01, wherein S is the
number of the slot of the multifunction module.
If the specified channels are configured as 16-bit digital input (send the
CONFigure:DIGital:WORD, MEASure:DIGital:WORD? or
[SENSe:]DIGital:DATA:WORD? command) or output (send the
SOURce:DIGital:DATA:WORD command), <ch_list> can only be S01 or S03, wherein S
is the number of the slot of the multifunction module.
If the specified channels are configured as 8-bit digital input (send the
CONFigure:DIGital:BYTE, MEASure:DIGital:BYTE? or [SENSe:]DIGital:DATA[:BYTE]?
command) or output (send the
SOURce:DIGital:DATA[:BYTE] command), <ch_list>
can be S01, S02, S03 or S04, wherein S is the number of the slot of the multifunction
module.
The default value of the level threshold is 2.5V. When sending this command to set the
output level value of the specified DIO channel, please make sure <level>
the
current level threshold +0.5V; otherwise, an error will be generated.
The instrument sets the level type to TTL after a Factory Reset (send the
*RST
command). An Instrument Preset (send the
SYSTem:PRESet command) or Card Reset
(send the SYSTem:CPON command) does not affect the current level type.
Return
Format
The query returns the level values of the specified channels in scientific notation. Multiple
return values are separated by commas.
Example DIG:LEV 3,(@201)
DIG:LEV? (@201)
The query returns +3.000000000E+00.
Related
commands
[SENSe:]DIGital:TYPE
[SENSe:]DIGital:THReshold