User manual

Chapter 2 Command System RIGOL
MSO7000/DS7000 Programming Guide 2-33
:BUS<n>:LIN (Option)
The :BUS<n>:LIN commands are used to set relevant parameters for LIN decoding.
Command List:
:BUS<n>:LIN:BAUD
:BUS<n>:LIN:POLarity
:BUS<n>:LIN:SOURce
:BUS<n>:LIN:STANdard
:BUS<n>:LIN:BAUD
Syntax
:BUS<n>:LIN:BAUD <baud>
:BUS<n>:LIN:BAUD?
Description
Sets or queries the baud rate of LIN decoding. The default unit is bps
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<baud>
Integer
2.4 kbps to 20 Mbps
19200 bps
Remarks
If the baud rate is set to a value with "M", then "A" should be added at the end of the
value. For example, if you send 5 M, you need to send 5 MA.
Return
Format
The query returns an integer ranging from 2.4 kbps to 20 Mbps.
Example
:BUS1:LIN:BAUD 9600 /*Sets the baud rate of LIN decoding to 9600 bps.*/
:BUS1:LIN:BAUD? /*The query returns 9600.*/
:BUS<n>:LIN:POLarity
Syntax
:BUS<n>:LIN:POLarity <bool>
:BUS<n>:LIN:POLarity?
Description
Sets or queries the parity bit of LIN decoding.
Parameter
Name
Type
Range
Default
<n>
Discrete
{1|2|3|4}
——
<bool>
Bool
{{1|ON}|{0|OFF}}
0|OFF
Return
Format
The query returns 0 or 1.
Example
:BUS1:LIN:POLarity ON /*Sets the parity bit to be included in LIN decoding.*/
:BUS1:LIN:POLarity? /*The query returns 1.*/