Programming examples
R&S
®
ZNB/ZNBT
1513
User Manual 1173.9163.02 ─ 62
// Reset the analyzer
*RST
:SYSTEM:DISPLAY:UPDATE ON
// Create a trace with the last extremum as memory trace.
:TRACe:COPY 'LastExtr', 'Trc1'
// Display this last extremum trace.
// Because it's a memory trace it must be displayed in the same diagram
// as the mother trace.
:DISPlay:WINDow1:TRACe2:FEED 'LastExtr'
:CALCulate1:MATH:SDEFine 'Max (Data, Mem)'
:CALCulate1:MATH:STATe ON
// Single sweep mode
:INITIATE:CONTINUOUS OFF
// Do a single sweep and update trace with the current extremum.
// This is the last extremum for the next sweep
:INITIATE:IMMEDIATE; *WAI
:TRACe:COPY:MATH 'LastExtr', 'Trc1'
// Loop over these 2 commands
:INITIATE:IMMEDIATE; *WAI
:TRACe:COPY:MATH 'LastExtr', 'Trc1'
:INITIATE:IMMEDIATE; *WAI
:TRACe:COPY:MATH 'LastExtr', 'Trc1'
// Continuous sweep mode
:INITIATE:CONTINUOUS ON
8.2.4.3
Retrieving the results of previous sweeps
The commands
CALCulate<Ch>:DATA:NSWeep...? SDATa,
<Trace_Hist_Count>
retrieve the results of any sweep within a previously defined
single sweep group. This means that, in single sweep mode, you can first measure a
specified number of sweeps (
SENSe<Ch>:SWEep:COUNt <sweeps>
) and then read
any of the data traces acquired.
This feature has no equivalent in manual control where always the last data trace is
displayed.
// Reset the analyzer
*RST
:SYSTEM:DISPLAY:UPDATE ON
Condensed programming examples