R&S ESR Series User Manual page 620

Emi test receiver
Table of Contents

Advertisement

®
R&S
ESR
CALL InstrWrite(analyzer,"FREQ:SPAN 0Hz")
'Switch to zero span
CALL InstrWrite(analyzer,"INIT;*WAI")
'--------- Reading out in ASCII format -------------------------------------
CALL InstrWrite(analyzer,"FORMAT ASCII")
'Set ASCII format
CALL InstrWrite(analyzer,"TRAC1? TRACE1")
'Read and output
CALL InstrRead(analyzer, asciiResult$)
Print "Contents of Trace1: ",asciiResult$
END SUB
REM ************************************************************************
Storing and Loading Instrument Settings
Settings and measured data can be stored and loaded. You can define which data set
is loaded when the instrument is preset or started.
Storing Instrument Settings
In the following example, the settings/measured data to be stored are defined initially,
in which case only the hardware settings are stored. However, the selection commands
for the other settings are specified with the state "OFF" for the sake of completeness.
REM ***********************************************************************
Public Sub StoreSettings()
'This subroutine selects the settings to be stored and creates the
'data record "TEST1" in the directory C:\R_S\Instr\user. It uses the default
'setting and resets the instrument after the setting is stored.
'--------- Default settings of the R&S FSV ------------------------------
CALL SetupInstrument
CALL InstrWrite(analyzer,"INIT:CONT OFF")
'Change to single sweep
CALL InstrWrite(analyzer,"INIT;*WAI")
'--------- Selection of settings to be stored ----------------------------
CALL InstrWrite(analyzer,"MMEM:SEL:HWS ON")
'Store hardware settings
CALL InstrWrite(analyzer,"MMEM:SEL:TRAC OFF")
'Do not store any traces
CALL InstrWrite(analyzer,"MMEM:SEL:LIN:ALL OFF")
'Store only the activated limit lines
'--------- Storing on the instrument -------------------------------------
CALL InstrWrite(analyzer,"MMEM:STOR:STAT 1,'C:\R_S\Instr\user\TEST1'")
'--------- Resetting the instrument --------------------------------------
CALL InstrWrite(analyzer,"*RST")
END SUB
REM ***********************************************************************
Loading Instrument Settings
In the following example, the TEST1 data record stored under C:\R_S\Instr\user
is loaded by the instrument:
User Manual 1175.7068.02 ─ 12
Controlling the R&S ESR Remotely
'Perform sweep with sync
'trace 1
'Perform sweep with sync
Remote Control
617

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents