Remote control commands
R&S
®
RTE
1056User Manual 1326.1032.02 ─ 20
In the following example *OPC prevents overlapping execution of asynchronous com-
mands.
// Turn on display update
:SYSTem:DISPlay:UPDate ON
// Turn on Channel 2
:CHANnel2:STATe 1
// Create new diagram 'MyDiag2' below existing 'Diagram1' with waveform C2W1 in it
:LAYout:ADD 'Diagram1',VERtical,OFF,C2W1,'MyDiag2'
// Turn on Channel 3
:CHANnel3:STATe 1
// Create new diagram 'MyDiag3' right of existing 'MyDiag2'
:LAYout:ADD 'MyDiag2',HORizontal,OFF,C3W1,'MyDiag3'
// Turn on Channel 4
:CHANnel4:STATe 1
// Create new diagram 'MyDiag4' tabbed to existing 'Diagram1'
:LAYout:ADD 'Diagram1',TAB,OFF,C4W1,'MyDiag4'
// Select 'Diagram1'
:LAYout:SHOW 'Diagram1'
// Create zoom window of 'Diagram1'
:LAYout:ZOOM:ADD 'Diagram1',VERT,OFF,-10e-9,10e-9,-0.05,0.04,'MyZoom1'
// Minimize Channel 2 (Wfm1)
:LAYout:SIGNal:UNAssign C2W1
// Add Channel 2 (Wfm1) to Diagram1
:LAYout:SIGNal:ASSign 'Diagram1', C2W1
*OPC?
18.3.1.2 Creating zoom diagrams
The example creates a zoom diagram, sets the relative size of the zoom area, and
removes the zoom diagram.
Command description in: Chapter 18.10.1, "Zoom", on page 1211.
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
Programming examples