Quick Start
R&S
®
ESR
136
User Manual 1175.7068.02 ─ 12
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") 'Perform sweep with sync
'--------- 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:
REM ************************************************************************
Public Sub LoadSettings()
'This subroutine loads the TEST1 data record in the directory
'C:\R_S\Instr\user.
'--------- Default setting of the status register --------------------------
CALL SetupStatusReg 'Configure status register
'--------- Loading the data record -----------------------------------------
CALL InstrWrite(analyzer,"MMEM:LOAD:STAT 1,'C:\R_S\Instr\user\TEST1'")
'--------- Perform measurement using loaded data record --------------------
CALL InstrWrite(analyzer,"DISP:TRAC1:MODE WRIT")
'Set trace to Clr/Write
CALL InstrWrite(analyzer,"INIT;*WAI") 'Start sweep
END SUB
REM ************************************************************************
Brief Introduction to Remote Control