Instructions

Chapter 2 Command System RIGOL
MSO7000/DS7000 Programming Guide 2-17
Format
D15, CHAN1, CHAN2, CHAN3, CHAN4, or OFF.
Example
:BUS1:RS232:RX D0 /*Sets the RX channel source of RS232 decoding to D0.*/
:BUS1:RS232:RX? /*The query returns D0.*/
:BUS<n>:RS232:POLarity
Syntax
:BUS<n>:RS232:POLarity <pol>
:BUS<n>:RS232:POLarity?
Description
Sets or queries the polarity of RS232 decoding.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<pol>
Discrete
{POSitive|NEGative}
NEGative
Remarks
The RS232 standard uses "Negative Logic", i.g. high level is Logic 0 and low level is
Logic 1. Therefore, when the parameter <pol> is set to NEGative, it indicates that
the polarity is set to negative logic, i.g. Normal polarity. When the parameter <pol>
is set to POSitive, it indicates that the polarity is set to positive logic, i.g. Inverted
polarity.
In the RS232 decoding, the start bit of data packet indicates when to start data
transmission. It is determined by the polarity. When <pol> is set to "POSitive", the
start bit is 0; when "NEGative", the start bit is 1.
Return
Format
The query returns POS or NEG.
Example
:BUS1:RS232:POLarity POSitive /*Sets the polarity of RS232 decoding toPOSitive.*/
:BUS1:RS232:POLarity? /*The query returns POS.*/
:BUS<n>:RS232:ENDian
Syntax
:BUS<n>:RS232:ENDian <endian>
:BUS<n>:RS232:ENDian?
Description
Sets or queries the endian of data transmission in RS232 decoding.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<endian>
Discrete
{MSB|LSB}
LSB
Remarks
LSB: indicates Least Significant Bit transmission sequence, i.g. the lowest bit of the
data is transmitted first.
MSB: indicates Most Significant Bit transmission sequence, i.g. the highest bit of the
data is transmitted first.
Return
Format
The query returns LSB or MSB.
Example
:BUS1:RS232:ENDian MSB /*Sets the transmission order of RS232 decoding to MSB.*/
:BUS1:RS232:ENDian? /*The query returns MSB.*/