Example
This example enables an automatically scaled, 100-bin histogram of 1000 DCV measurements. It then
returns the computed histogram, including the lower and upper range values, the total measurement
count, and the bin data.
CONF:VOLT:DC 10,0.001
SAMP:COUN 1000
CALC:TRAN:HIST:RANG:AUTO ON
CALC:TRAN:HIST:POIN 100
CALC:TRAN:HIST:STAT ON
INIT
*WAI
CALC:TRAN:HIST:ALL?
Typical Response: +9.9900,+1.0001,+1000,<
102 bin counts
>
The above response indicates 102 bin counts because the histogram includes bins for values below and
above the histogram range.
CALCulate:TRANsform:HISTogram:ALL?
CALCulate:TRANsform:HISTogram:DATA?
The ALL form of the query returns a comma-separated list of the lower and upper range values, the num-
ber of measurements, and the bin data collected since the last time the histogram data was cleared. The
DATA form returns only the bin data.
Parameter Typical Return
(none)
See
See
.
l
The bin data includes the following, in order:
l
The number of measurements less than the lower range value
l
The number of measurements in the each of the bins, starting at the lower range value bin
l
The number of measurements greater than the upper range value
l
Range values are real numbers returned in the form +1.0000. The number of measurements
and bin data are signed, positive integers returned in the form +100.
SCPI Programming Reference
218
Keysight True
volt
Series Operating and Service Guide