User manual

Chapter 2 Command System RIGOL
MSO7000/DS7000 Programming Guide 2-221
:TRIGger:LIN:WHEN
Syntax
:TRIGger:LIN:WHEN <when>
:TRIGger:LIN:WHEN?
Description
Sets or queries the trigger condition of LIN trigger.
Parameter
Name
Type
Range
Default
<when>
Discrete
{SYNCbreak|ID|DATA|IDData|SLEep|WAKeup|
ERRor}
ID
Description
SYNCbreak: triggers on the last bit of the sync field.
ID: triggers when the frames with the specified ID are found.
DATA: triggers when the data that meet the preset conditions are found.
IDData: triggers when the frames with the specified ID and data that meet the
preset conditions are both found.
SLEep: triggers when the sleep frame is found.
WAKeup: triggers when the wakeup frame is found.
ERRor: triggers on the specified type of error frame.
Return Format
The query returns SYNC, ID, DATA, IDD, SLE, WAK, or ERR.
Example
:TRIGger:LIN:WHEN SYNCbreak /*Sets the trigger condition to SYNCbreak.*/
:TRIGger:LIN:WHEN? /*The query returns SYNC.*/
:TRIGger:LIN:LEVel
Syntax
:TRIGger:LIN:LEVel <level>
:TRIGger:LIN:LEVel?
Description
Sets or queries the trigger level of LIN trigger. Its unit is the same as that of the current
amplitude.
Parameter
Name
Type
Range
Default
<level>
Real
(-5 × VerticalScale - OFFSet) to
(7 × VerticalScale - OFFSet)
0 V
Remarks
For VerticalScale, refer to the :CHANnel<n>:SCALe command; for OFFSet, refer to
the :CHANnel<n>:OFFSet command.
Return
Format
The query returns the trigger level in scientific notation.
Example
:TRIGger:LIN:LEVel 0.16 /*Sets the trigger level to 160 mV.*/
:TRIGger:LIN:LEVel? /*The query returns 1.600000E-1.*/