Remote control commands
R&S
®
RTP
1130User Manual 1337.9952.02 ─ 12
22.3.2.3 Waveform histograms
In the following example *OPC prevents overlapping execution of asynchronous com-
mands.
Creating and reading histograms
The example creates a histogram, activates two measurements (mean and standard
deviation measurements of Histogram1), and queries the results of both measure-
ments.
Command description in:
●
Chapter 22.12.1, "General settings", on page 1360
●
Chapter 22.12.7.2, "Histogram measurement", on page 1404
●
Chapter 22.12.2, "Results", on page 1366
LAY:HIST:ADD 'Histogram1', C1W1, -2.5E-007, 2.5E-007, -1.32, 5.35, OFF, VERT *OPC?
MEAS1 ON
MEAS1:HIST:SEL 'Histogram1'
MEAS1:CAT HIST
MEAS1:MAIN HME
*OPC?
MEAS2 ON
MEAS2:HIST:SEL 'Histogram1'
MEAS2:CAT HIST
MEAS2:MAIN HSTD
*OPC?
MEAS1:RES:ACT?
MEAS2:RES:ACT?
Exporting histogram data to file
The example writes the absolute data values of Histogram1 to
C:\Histograms\Hist1.xml in XML format.
Command description in Chapter 22.16.6, "Waveform histogram export to file",
on page 1535.
EXPort:HISTogram:SELect 'Histogram1'
EXPort:HISTogram:INCidence ABS
EXPort:HISTogram:NAME 'C:\Histograms\Hist1.xml'
EXPort:HISTogram:SAVE
*OPC?
Transferring histogram data
The example transfers the absolute values of Histogram1 to a controlling computer in
ASCII format.
Programming examples