Triggering and Gating 5
Keysight 53220A/53230A User’s Guide 167
Initiating example
//configure for frequency, set system trigger parameters
CONF:FREQ 5E6,0.1,(@2)
TRIG:SOUR EXT // trigger source external
TRIG:SLOP POS // external trigger slope - positive
TRIG:DEL 1 // 1s delay after trigger received
TRIG:COUN 2 // accept 2 system triggers
SAMP:COUN 100 // take 100 readings per system trigger
INIT // initiate the counter - wait for trigger state
FETc? // retrieve measurements from reading memory
READ?
– equivalent to executing INITiate:IMMediate directly followed by FETCh?.
With READ?, readings are displayed, stored in reading memory, and
instantaneously read into the output buffer (see Chapter 7, "Formats and Data
Flow" for more information).
READ? example
//configure for frequency, set system trigger parameters
CONF:FREQ 5E6,0.1,(@2)
TRIG:SOUR EXT // trigger source external
TRIG:SLOP POS // external trigger slope - positive
TRIG:DEL 1 // 1s delay after trigger received
TRIG:COUN 2 // accept 2 system triggers
SAMP:COUN 100 // take 100 readings per system trigger
READ? //initiate the counter - fetch readings from memory
Once initiated, a valid trigger signal and a satisfied delay period (if specified)
moves the counter to the triggered state and the beginning of the gate cycle. The
counter remains in the triggered state until the sample count (readings per
trigger) is reached. The counter then returns to the wait-for-trigger state until the
next system trigger is received. The counter returns to the idle state once the
product of the trigger count x sample count is reached.