6 53220A/53230A Math, Graphing, and Data Logging
230 Keysight 53220A/53230A User’s Guide
Example: Setting up a histogram
The following example creates a 15-bin histogram of 3,000 counter
measurements. The lower and upper ranges are automatically determined from
the first 300 readings taken.
CONF:FREQ 50E3, (@1) // configure frequency measurement
SYST:TIM .1 // 100 ms measurement timeout
TRIG:SOUR BUS // set software triggers as source
TRIG:COUN 1 // trigger count = 1
SAMP:COUN 3000 // 3000 readings per trigger
SENS:FREQ:GATE:SOUR TIME // set gate source
SENS:FREQ:GATE:TIME 1E3 // set a 1 ms gate time
DISP:MODE HIST // histogram display mode
CALC2:TRAN:HIST:POIN 15 // specify 15 bins
CALC2:TRAN:HIST:RANG:AUTO ON // auto-select ranges
CALC2:TRAN:HIST:RANG:AUTO:COUN 300 // use first 300 rgs
CALC2:TRAN:HIST:STAT ON // enable histogram
INIT // initiate the counter
*TRG // send a software trigger
Resetting the histogram
The data from which the current histogram is created is cleared by any of the
following:
– pressing the Reset Histogram softkey
– enabling/disabling or changing any part of the histogram
– number of bins, lower or upper range
– a new measurement cycle - INITiate:IMMediate, READ?, MEASure
– sending a new SCPI command or changing a current SCPI parameter