Rigol DS7034 User Programming Manual page 31

Mso7000 series; ds7000 series; digital oscilloscope
Hide thumbs Also See for DS7034:
Table of Contents

Advertisement

Chapter 2 Command System
Format
D15, CHAN1, CHAN2, CHAN3, CHAN4, or OFF.
Example
:BUS1:RS232:RX D0
:BUS1:RS232:RX?
: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
<n>
<pol>
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
The query returns POS or NEG.
Format
Example
:BUS1:RS232:POLarity POSitive
:BUS1:RS232:POLarity?
: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
<n>
<endian>
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
The query returns LSB or MSB.
Format
Example
:BUS1:RS232:ENDian MSB /*Sets the transmission order of RS232 decoding to MSB.*/
:BUS1:RS232:ENDian?
MSO7000/DS7000 Programming Guide
/*Sets the RX channel source of RS232 decoding to D0.*/
/*The query returns D0.*/
Type
Range
Discrete
{1|2|3|4}
Discrete
{POSitive|NEGative}
Type
Range
Discrete
{1|2|3|4}
Discrete
{MSB|LSB}
/*The query returns MSB.*/
/*Sets the polarity of RS232 decoding toPOSitive.*/
/*The query returns POS.*/
RIGOL
Default
——
NEGative
Default
——
LSB
2-17

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ds7054Ds7024Ds7014Mso7034Mso7024Mso7014 ... Show all

Table of Contents