User`s guide
53220A/53230A User’s Guide 109
53220A/53230A Measurements 3
Gated Totalize Measurement Examples
// using MEASure? - totalize inputs on channel 1 for 10 us
*RST // reset to start from known state
MEAS:TOT:TIM? 10e-6, (@1)
------------------------------------------------------
// using CONFigure - totalize inputs on channel 1 for 1s;
// use same signal as gate signal (apply to channel 2)
*RST // reset the counter to start from a known state
SYST:TIM 3 // 3s measurement timeout
CONF:TOT:TIM (@1)
INP1:LEV 0.0 // set count threshold to 0V
INP1:SLOP POS // count positive edges
INP2:LEV 0.0 // set gate threshold to 0V
SENS:GATE:STAR:SOUR EXT // use external gate signal
SENS:GATE:EXT:SOUR INP2 // gate is ext signal on ch. 2
SENS:GATE:STAR:SLOP POS // start gate on rising edge
SENS:GATE:STOP:HOLD:SOUR TIME // hold off gate close
SENS:GATE:STOP:HOLD:TIME 1.0 // hold off close for 1s
SENS:TOT:GATE:SOUR ADV // enable gate settings
INIT?
Notes
1. In the program above (using CONFigure), the input signal on channel 1
whose events (edges) are totalized is also applied to channel 2 as the gate sig-
nal.
Totalizing the positive edges begins on the same edge that opens the gate. A
gate stop hold off is set to extend the gate. For totalize measurements, the
holdoff starts when the gate opens. Setting a hold off of 1 second in effect, sets
a 1 second gate time. If the gate stop was not held off, the gate would close
after 1 event.
2. See Chapter 5 for additional information on triggering and gating.