Instructions

Chapter 2 Command System RIGOL
DS1000Z-E Programming Guide 2-39
Return
Format
The query returns CHAN1, CHAN2, or OFF.
Example
:DECoder1:UART:RX CHANnel2 /*Set the RX channel source to CH2*/
:DECoder1:UART:RX? /*The query returns CHAN2*/
: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*/
:DECoder<n>:UART:ENDian
Syntax :DECoder<n>:UART:ENDian <endian>
:DECoder<n>:UART:ENDian?
Description Set or query the endian of RS232 decoding.
Parameter
Name Type Range Default
<n> Discrete {1|2} --
<endian>
Discrete
{LSB|MSB}
LSB
Return
Format
The query returns LSB or MSB.
Example
:DECoder1:UART:ENDian MSB /*Set the endian of RS232 decoding to MSB*/
:DECoder1:UART:ENDian? /*The query returns MSB*/
:DECoder<n>:UART:BAUD
Syntax :DECoder<n>:UART:BAUD <baud>
:DECoder<n>:UART:BAUD?
Description Set or query the buad rate of RS232 decoding. The default unit is bps (baud per second).