Operating instructions

More Complex Programming Examples R&S ESCI
1166.6004.12 7.44 E-1
Loading Device Settings
In the following example, data set TEST1 stored under D:\USER\DATA is reloaded into the instrument:
REM ************************************************************************
Public Sub LoadSettings()
'This subroutine loads data set "TEST1" in directory D:\USER\DATA.
'--------- Default setting of status register ------------------------------
Call SetupStatusReg 'Configure status register
'--------- Load data set ---------------------------------------------------
CALL IBWRT(receiver%,"MMEM:LOAD:STAT 1,'D:\USER\DATA\TEST1'")
'----Start measurement using the data set loaded ---------------------------
CALL IBWRT(receiver%,"DISP:TRAC1:MODE WRITE") 'Set trace to Clr/Write
CALL IBWRT(receiver%,"INIT;*WAI") 'Start the sweep
END SUB
REM
************************************************************************
Setting the Data Set for Startup Recall
In the following example, the R&S ESCI is first reset. Then the data set TEST1 stored under
D:\USER\DATA is selected for the STARTUP RECALL function, i.e. the data set is set for every *RST,
PRESET and every device startup. For illustration, the command *RST is executed again.
REM ************************************************************************
Public Sub StartupRecallSettings()
'--------- Reset R&S ESCI --------------------------------------------------
-----
CALL IBWRT(receiver%,"*RST")
'--------- Default setting of status register ------------------------------
Call SetupStatusReg 'Configure status register
'--------- Select startup recall data set-----------------------------------
CALL IBWRT(receiver%,"MMEM:LOAD:AUTO 1,'D:\USER\DATA\TEST1'")
'--------- Activate startup recall data set --------------------------------
CALL IBWRT(receiver%,"*RST")
END SUB
REM
************************************************************************