Remote Control
R&S
®
ESRP
588
User Manual 1175.7445.02 ─ 08
CALL InstrWrite(analyzer,"FREQ:SPAN 0Hz")
'Switch to zero span
CALL InstrWrite(analyzer,"INIT;*WAI") 'Perform sweep with sync
'--------- 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$ 'trace 1
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") '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:
Controlling the R&S
ESRP Remotely