Scanning Using Bus Triggers

This example uses bus triggering (TRIG:SOUR BUS) to scan channels 00 through 02 of a single-module switchbox. The trigger source to advance the scan is the *TRG command (as set with TRIGger:SOURce BUS). When INIT is executed, the scan is started and channel 00 is closed. Then, each *TRG command advances the scan to the next channel.

TRIG:SOUR BUS

Select interface (BUS) triggering.

SCAN (@100:102)

Scan channels 00 through 02.

INIT

Start scan, close channel 00.

*TRG

Advances scan using BUS

 

triggering.

increment loop

Increment loop count.

:SOURce? TRIGger:SOURce? returns the current trigger source for the switchbox. Command returns either BUS, EXT, HOLD, or IMM for trigger sources BUS, EXTernal, HOLD, or IMMediate, respectively.

Example Query the Trigger Source

TRIG:SOUR EXT

Sets trigger source to external.

TRIG:SOUR?

Query trigger source.

Chapter 4

HP E1368A/69A/70A Command Reference 69

Page 69
Image 69
HP E1368A manual Scanning Using Bus Triggers, Example Query the Trigger Source