5.8 Trigger System
5-83 ZM2371/ZM2372
Here shown are typical examples in which a trigger is applied to the ZM2371 / ZM2372 to
execute measurement once to obtain the measured result, and this operation is repeated.
Example 1 Measured value is obtained by *TRG command
Power ON ' Setting equivalent to :INIT:CONT ON
Transmit (":INIT:CONT ON") ' Specify definitely when it’s not known exactly how
after start (Note 1)
Transmit (":TRIG:SOUR BUS") ' Set so as to apply trigger by remote control
Transmit (":ABORT") ' Idle Trigger waiting state
Transmit ("*TRG") ' Apply trigger, and transfer measured result
Receive (measurement status, primary parameter measured value, secondary
parameter measured value)
Note 1: If :INIT:CONT OFF, after the first measurement, the device remains in idle state,
and thus the trigger at the second and subsequent times becomes ineffective.
Example 2 Measured value is obtained by :TRIG command and :FETCH? query
Transmit ("*RST") ' Setting equivalent to :INIT:CONT OFF
Transmit (":TRIG:SOUR EXT") ' Set trigger source to handler interface
Transmit (":INIT") ' Device goes in trigger waiting state
Transmit (":TRIG") ' Trigger can also be applied from handler interface,
' omitting this command
Transmit (":FETC?") ' Query the latest measured value
Receive (measurement status, primary parameter measured value, secondary
parameter measured value)
For the limit comparison, :CALC1:LIM:FAIL? can also be used instead of :FETC?
Example 3 Measured value is obtained by READ? query
Transmit ("*RST") ' Setting equivalent to :INIT:CONT OFF
Transmit (":TRIG:SOUR EXT") ' Set trigger source to handler interface
Transmit (":INIT:CONT ON") ' Set so as to return to trigger waiting after
measurement completed
Transmit (":READ?") ' Idle In trigger waiting state,
' wait for trigger (Note 2)
' When trigger is applied and one-time measurement
finished,
' the result is transmitted
Receive (measurement status, primary parameter measured value, secondary
parameter measured value)
Note 2: If :READ? query is executed, the device does not execute the next command until
the measured result is stored completely in the transmission buffer. The :TRIG
command of a program message “:READ?;:TRIG” is executed after READ? query
started and the measurement started by TRIG signal of handler interface finished.