6 Advanced Source, Measurement, and Control
Use the following commands to select a trigger source. To select Bus triggers for output 1:
TRIG:HIST:SOUR BUS,(@1)
To select the IMMediate trigger source for output 1:
TRIG:HIST:SOUR IMM,(@1)
To select the EXTernal trigger source for output 1:
TRIG:HIST:SOUR EXT,(@1)
To select Digital pin triggers on pin 3 for output 1:
TRIG:HIST:SOUR PIN3,(@1)
Initiate and Trigger the Histogram
When the power analyzer is turned on, the trigger system is in the Idle state. In this state, the trigger
system is disabled, ignoring all triggers. The INITiate command enables the measurement system to
receive triggers. To initiate and then trigger histogram measurements on output 1:
INIT:HIST (@1)
TRIG:HIST (@1)
If the trigger source is BUS, you can also program *TRG or <GET> to trigger the histogram.
When a histogram measurement is initiated and triggered, the current is continuously sampled.
Histograms sample at the rate of 20.48 microseconds per sample. Each sampled value is compared to
the amplitude range of each bin of the histogram and the value of the bin that the sampled value falls
within is incremented by 1. There is some overlap between the lowest bins of the high range and the
highest bins of the low range; values that overlap both ranges are placed in the low range buckets.
Each Fetch returns the latest cumulative histogram data. The measurement continues until it is
aborted. The count bins are 64-bits wide, which eliminates any concern for overflow.
Terminate the Measurement
Measurements continue until the histogram is aborted. To abort the histogram measurement:
ABOR:HIST (@1)
Retrieve the Histogram Measurement
The following command returns the histogram counts for the 7.8 mA histogram range from output 1:
FETC:HIST:CURR? 0.0078,(@1)
The following command returns the histogram counts for the 8 A histogram range from output 1:
FETC:HIST:CURR? 8,(@1)
Histogram data is returned as 4096 comma-separated ASCI values terminated by a newline. A
histogram query can only fetch data from one histogram range at a time.
Keysight N6705C User's Guide
221