Chapter 2 Command System RIGOL
MSO7000/DS7000 Programming Guide 2-17
D15, CHAN1, CHAN2, CHAN3, CHAN4, or OFF.
: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
:BUS<n>:RS232:POLarity <pol>
:BUS<n>:RS232:POLarity?
Sets or queries the polarity of RS232 decoding.
 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.
The query returns POS or NEG.
:BUS1:RS232:POLarity POSitive /*Sets the polarity of RS232 decoding toPOSitive.*/
:BUS1:RS232:POLarity? /*The query returns POS.*/
:BUS<n>:RS232:ENDian
:BUS<n>:RS232:ENDian <endian>
:BUS<n>:RS232:ENDian?
Sets or queries the endian of data transmission in RS232 decoding.
 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.
The query returns LSB or MSB.
:BUS1:RS232:ENDian MSB /*Sets the transmission order of RS232 decoding to MSB.*/
:BUS1:RS232:ENDian? /*The query returns MSB.*/