User manual
Chapter 2 Command System RIGOL
MSO1000Z/DS1000Z Programming Guide 2-45
:DECoder<n>:UART:RX
Syntax :DECoder<n>:UART:RX <rx>
:DECoder<n>:UART:RX?
Description Set or query the RX channel source of RS232 decoding.
Parameter
Name Type Range Default
<n> Discrete {1|2} --
<rx> Discrete
{D0|D1|D2|D3|D4|D5|D6|D7|D8|
D9|D10|D11|D12|D13|D14|D15|
CHANnel1|CHANnel2|CHANnel3|CHANnel4|OFF}
OFF
Explanation When OFF is selected, no RX channel source will be set. The RX channel source and TX
channel source (
:DECoder<n>:UART:TX) cannot be both set to OFF.
Return
Format
The query returns D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14,
D15, CHAN1, CHAN2, CHAN3, CHAN4, or OFF.
Example
:DECoder1:UART:RX CHAN4 /*Set the RX channel source to CH4*/
:DECoder1:UART:RX? /*The query returns CHAN4*/
:DECoder<n>:UART:POLarity
Syntax :DECoder<n>:UART:POLarity <pol>
:DECoder<n>:UART:POLarity?
Description Set or query the polarity of RS232 decoding.
Parameter
Name
Type
Range
Default
<n> Discrete {1|2} --
<pol> Discrete {NEGative|POSitive} POSitive
Explanation
NEGative: negative polarity (
), namely high level is 0 and low level is 1. The
RS232 standard uses negative polarity.
POSitive: positive polarity ( ), namely high level is 1 and low level is 0.
Return
Format
The query returns NEG or POS.
Example :DECoder1:UART:POLarity NEGative /*Set the polarity of RS232 decoding to
negative*/
:DECoder1:UART:POLarity? /*The query returns NEG*/