Remote control commands
R&S
®
RTP
1128User Manual 1337.9952.02 ─ 12
In the following example *OPC prevents overlapping execution of asynchronous com-
mands.
// Create an new zoom diagram for Diagram1
LAYout:ZOOM:ADD 'Diagram1', VERT, OFF, -10e-9, 20e-9, -0.1, 0.05, 'MyZoom1'
// Query the horizontal zoom mode, return value: ABS
LAYout:ZOOM:HORZ:MODE? 'Diagram1', 'MyZoom1'
<--ABS
// Set horizontal zoom mode to relative
LAYout:ZOOM:HORZ:MODE 'Diagram1', 'MyZoom1', REL
// Set horizontal zoom span in percent
LAYout:ZOOM:HORZ:REL:SPAN 'Diagram1', 'MyZoom1', 10
// Set horizontal zoom position in percent
LAYout:ZOOM:HORZ:REL:POS 'Diagram1', 'MyZoom1', 15
*OPC?
// Remove zoom diagram
LAYout:ZOOM:REM 'Diagram1', 'MyZoom1'
*OPC?
22.3.2 Automatic measurements
22.3.2.1 Performing amplitude/time measurements
Command description is given in Chapter 22.12.1, "General settings", on page 1360
and Chapter 22.12.2, "Results", on page 1366
In the following example *OPC prevents overlapping execution of asynchronous com-
mands.
Simple frequency and amplitude measurement
SING;*OPC?
MEAS1:SOUR C1W1 // Configure frequency measurement
MEAS1:MAIN FREQ
MEAS1 ON
*OPC?
MEAS2:SOUR C1W1 // Configure amplitude measurement
MEAS2:MAIN AMPL
MEAS2 ON
*OPC?
MEAS1:RES:ACT? // Get frequency result
MEAS2:RES:ACT? // Get amplitude result
*OPC?
22.3.2.2 Setting reference levels
Command description in Chapter 22.12.14, "Reference levels", on page 1429
Programming examples