Operating instructions

R&S ESCI More Complex Programming Examples
1166.6004.12 7.43 E-1
Storing and Loading Device Settings
Storing Instrument Settings
In the following example, the settings/measurement data to be stored are determined; only the hardware
settings are stored. The selection commands for the other settings are indicated with the status OFF for
the sake of completeness.
REM ************************************************************************
Public Sub StoreSettings()
'This subroutine selects the settings to be stored and creates
'the data set "TEST1" in directory D:\USER\DATA. It uses
'the default setting and resets the instrument after storage
'of the setting.
'--------- R&S ESCI default setting ----------------------------------------
-----
Call SetupInstrument
CALL IBWRT(receiver%,"INIT:CONT OFF") 'Single sweep
CALL IBWRT(receiver%,"INIT;*WAI") 'Perform sweep with sync
'--------- Select items to be stored ---------------------------------------
CALL IBWRT(receiver%,"MMEM:SEL:HWS ON") 'Save hardware settings
CALL IBWRT(receiver%,"MMEM:SEL:TRAC OFF") 'No storing of traces
CALL IBWRT(receiver%,"MMEM:SEL:LIN:ALL OFF") 'Save only active limit lines
'--------- Define comment --------------------------------------------------
CALL IBWRT(receiver%,"MMEM:COMM 'Test Setup'")
'--------- Store selected items --------------------------------------------
CALL IBWRT(receiver%,"MMEM:STOR:STAT 1,'D:\USER\DATA\TEST1'")
'--------- Reset instrument ------------------------------------------------
CALL IBWRT(receiver%,"*RST")
END SUB
REM
************************************************************************