Operating instructions

R&S ESCI More Complex Programming Examples
1166.6004.12 7.13 E-1
More Complex Programming Examples
Default Setting of the R&S ESCI
The following settings are an example of how to modify the default setting of the R&S ESCI.
It should be noted that only some settings are necessary depending on the example of application. In
particular, the settings for resolution bandwidth, video bandwidth and sweep time are often not needed
since these parameters are automatically calculated in the default setting on modifying the frequency
range (span). The insertion loss is also automatically calculated depending on the reference level. The
level detectors are coupled to the selected trace mode in the default setting.
The settings which are automatically calculated in the default setting are marked by (*) in the following
programming example.
Setting the IEC/IEEE Bus Status Register
REM ************************************************************************
Public Sub SetupStatusReg()
'--------- IEEE 488.2 status register --------------------------------------
CALL IBWRT(receiver%,"*CLS") 'Reset Status Registers
CALL IBWRT(receiver%,"*SRE 168") 'Enable service request
'for STAT:OPER-,STAT:QUES- and
'ESR registers
CALL IBWRT(receiver%,"*ESE 61") 'Set Event Enable bit for:
'Operation Complete
'Command-, Execution-,Device
'Dependent- and Query Error
'--------- SCPI status register --------------------------------------------
CALL IBWRT(receiver%,"STAT:OPER:ENAB 0") 'Disable OPERation Status Reg
CALL IBWRT(receiver%,"STAT:QUES:ENAB 0") 'Disable Questionable Status
'Register
End Sub
REM
************************************************************************