User`s guide

53220A/53230A User’s Guide 189
Triggering and Gating 5
Gate Hold Off and Stop Configuration Example
The following example shows the sequence commonly used when configuring
the stop gate hold off and stop gate using low-level commands.
//configure the counter for an externally gated time
//interval measurement. The gate start and stop signals are
//applied to the rear panel ‘Gate In’ BNC. Gate closing is
//held off for 1 second after the stop gate signal is
//received.
//
CONF:TINT (@1),(@2) // time interval meas ch1-ch2
TRIG:SOUR INT // use internal trigger source
TRIG:COUN 1 // specify one trigger
SAMP:COUN 2 // set 2 readings (gate cycles)
SENS:GATE:STAR:SOUR EXT // set an external gate source
SENS:GATE:EXT:SOUR EXT // select rear panel Gate In BNC
SENS:GATE:STAR:SLOP POS // set a pos. start gate slope
OUTP:STAT OFF // disable BNC as an output
//
// configure hold off and stop gate
//
SENS:GATE:STOP:HOLD:SOUR TIME // hold off source
SENS:GATE:STOP:HOLD:TIME 1 //hold off gate close for 1s
SENS:GATE:STOP:SOUR EXT // external stop gate source
SENS:GATE:EXT:SOUR EXT // select rear panel Gate In BNC
SENS:GATE:STOP:SLOP POS // select pos. stop gate source
SENS:TINT:GATE SOUR ADV // low-level gate control
READ? // initiate counter and take reading
Automatic Gate Extension
Inherent to 53220A/53230A frequency and period measurements is auto-
matic gate extension in which the measurement ends one edge (event) of the
input signal after the gate is closed (stopped). Thus, the sample count
(SAMPle:COUNt) does not increment and cause a potential state change in
the trigger/gate cycle (Figure 5-2) until the gate extension is complete.