Specifications

Chapter 2 Command System RIGOL
M300 Programming Guide 2-141
[SENSe:]DIGital:THReshold
Syntax [SENSe:]DIGital:THReshold <threshold>,[(@<ch_list>)]
[SENSe:]DIGital:THReshold? [(@<ch_list>)]
Description Set or query the digital output level threshold values of the specified channels (the level
type is set to USER).
Parameters
Name
Type
Range
Default
<threshold>
Numeric
Any numeric value between 0.5V and 3.5V.
2.5V
<ch_list>
Channel
List
One or more channels (only for the 01 channel
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 level is 5V. When sending this command to set the input level threshold of
the specified DIO channel, please make sure <threshold> is lower than or equal to the
level -0.5V; otherwise, an error will be generated.
When the input signal < Threshold–0.3 V, it is regarded as logic 0;
When the input signal >Threshold+0.3 V, it is regarded as logic 1.
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 threshold values of the specified channels in scientific notation.
Multiple return values are separated by commas.
Example DIG:THR 1.5,(@201)
DIG:THR? (@201)
The query returns +1.500000000E+00.
Related
commands
[SENSe:]DIGital:TYPE
[SENSe:]DIGital:THReshold