![Rigol DS4000E Series Programming Manual Download Page 233](http://html1.mh-extra.com/html/rigol/ds4000e-series/ds4000e-series_programming-manual_1460996233.webp)
RIGOL
DS4000E Programming Guide
2-221
:TRIGger:RS232:WHEN
Syntax
:TRIGger:RS232:WHEN <cond>
:TRIGger:RS232:WHEN?
Description
Sets or queries the trigger condition of RS232 trigger.
Parameter
Name
Type
Range
Default
<cond>
Discrete
{STARt|ERRor|PARity|DATA}
STARt
Remarks
STARt: indicates start of frame.The oscilloscope triggers at the start of a frame.
ERRor: indicates error frame. The oscilloscope triggers when an error frame is found.
PARity: indicates check error. The oscilloscope triggers when a check error is found.
DATA: indicates that the oscilloscope triggers on the last bit of the preset data bits.
When <cond> is "ERRor", you can use the :TRIGger:RS232:PARity command to set the even-odd
check mode of RS232 trigger, and use the :TRIGger:RS232:STOP command to set the stop bit of
RS232 trigger.
When <cond> is "PARity", you can use the :TRIGger:RS232:PARity command to set the even-odd
check mode of RS232 trigger.
When <cond> is "DATA", you can use the :TRIGger:RS232:WIDTh command to set the data width of
RS232 trigger, use the :TRIGger:RS232:DATA command to set the data value of RS232 trigger, use
the :TRIGger:RS232:PARity command to set the even-odd check mode, and use
the :TRIGger:RS232:STOP command to set the stop bit of RS232 trigger.
Return Format
The query returns STAR, ERR, PAR, or DATA.
:TRIGger:RS232:WIDTh
Syntax
:TRIGger:RS232:WIDTh <width>
:TRIGger:RS232:WIDTh?
Description
Sets or queries the data width of RS232 trigger when the trigger condition is "DATA" (refer to
the :TRIGger:RS232:WHEN command).
Parameter
Name
Type
Range
Default
<width>
Discrete
{5|6|7|8}
8
Return Format
The query returns 5, 6, 7, or 8.