Appendix E: Search and Trigger Command Sequence Examples
Command Comment
*RST Resets the oscilloscope. Wait for the reset to complete
(approximately 3 seconds).
:SELect:CH1 1 Turns the C H1 waveform on.
:SELect:CH2 1 Turns the C H2 waveform on.
:SELect:CH3 1 Turns the C H3 waveform on.
:AUTOSet EXECute Autosets the displayed waveforms CH1, CH2 and CH3. Wait
for the aut
oset to complete (approximately 3 seconds).
:SEARCH:
SEARCH1:TRIGger:A:TYPe LOGIc
Specifies
that this will be a logic search (a mark will be placed
when all channels transition to the specified state).
:SEARCH:SEARC H1:T RIG ger:A:LOGIc:INPut:CH1 HIGH Specifies the Boolean logic criteria for channel 1; in this case,
high.
:SEARCH:SEARC H1:T RIG ger:A:LOGIc:INPut:CH2 HIGH Specifies the Boolean logic criteria for channel 2; in this case,
high.
:SEARC
H:SEARCH1:TRIGger:A:LOGIc:INPut:CH3 HIGH
Specifi
es the B oolean logic criteria for channel 3; in this case,
high.
:SEARCH:SEARCH1:TRIGger:A:LOGIc:THReshold:CH1 1.4 Specifies to use 1.4 volts as the threshold for CH1.
:SEARCH:SEARCH1:TRIGger:A:LOGIc:THReshold:CH2 1.5 Specifies to use 1.5 volts as the threshold for CH2.
:SEARCH:SEARCH1:TRIGger:A:LOGIc:THReshold:CH3 1.3 Specifies to use 1.3 volts as the threshold for CH3.
:SEARCH:SEARC H1:T RIGger:A:LOGIc:PATtern:WHEn TR UE Specifies the condition for generating a logic pattern search;
in this case, true.
:SEARCH:SEARC H1:T RIGger:A:LOGIc:FUNC tion OR Specifies the logic operator for the logic search; in this case,
OR
.
:S
EARCH:SEARCH1:STATE 1
Turns the search on.
:
SEARCH:SEARCH1:TOTal?
R
eturns 3 or 4, indicating 3 or 4 times when one of channels
1, 2 or 3 became high.
Note: Depending upon the number of transitions displayed,
y
ou may get 3 or 4 search marks for this example. If you get
3 search marks, try adjusting the horizontal position until you
see 4 search marks.
MSO2000B, DPO2000B, MSO2000 and DPO2000 Series Oscilloscopes Programmer Manual E-3