Remote Control
R&S
®
ESRP
580
User Manual 1175.7445.02 ─ 08
Setting the Remote Control Status Registers
REM ************************************************************************
Public Sub SetupStatusReg()
'--------- IEEE 488.2 status register --------------------------------------
CALL InstrWrite(analyzer,"*CLS") 'Reset status registers
CALL InstrWrite(analyzer,"*SRE 168") 'Enable Service Request for
'STAT:OPER-,STAT:QUES- and ESR-Register
CALL InstrWrite(analyzer,"*ESE 61") 'Set event enable bit for:
'operation complete 'command-, execution-,
'device dependent- and query error
'--------- SCPI status register --------------------------------------------
CALL InstrWrite(analyzer,"STAT:OPER:ENAB 0")
'Disable OPERation Status reg
CALL InstrWrite(analyzer,"STAT:QUES:ENAB 0")
'Disable questionable Statusreg
End Sub
REM ************************************************************************
Default Settings for Measurements
REM ************************************************************************
Public Sub SetupInstrument()
'--------- Default setting f the R&S FSV ---------------------------------
CALL SetupStatusReg 'Configure status registers
CALL InstrWrite(analyzer,"*RST") 'Reset instrument
CALL InstrWrite(analyzer,"SYST:DISP:UPD ON")
'ON: screen display on
'OFF: off (improved performance)
CALL InstrWrite(analyzer,"INIT:CONT OFF")
'Single sweep mode
'--------- Frequency setting -----------------------------------------------
CALL InstrWrite(analyzer,"FREQUENCY:CENTER 100MHz")
'Center frequency
CALL InstrWrite(analyzer,"FREQ:SPAN 1 MHz")
'Span
'--------- Level setting ---------------------------------------------------
CALL InstrWrite(analyzer,"DISP:WIND:TRAC:Y:RLEV -20dBm")
'Reference level
CALL InstrWrite(analyzer,"INP:ATT 10dB")
'Input attenuation (*)
'--------- Level scaling ---------------------------------------------------
CALL InstrWrite(analyzer,"DISP:WIND:TRAC:Y:SPAC LOG")
'Log level axis
CALL InstrWrite(analyzer,"DISP:WIND:TRAC:Y:SCAL 100dB")
'Level range
CALL InstrWrite(analyzer,"DISP:WIND:TRAC:Y:SCAL:MODE ABS")
'Absolute scaling
CALL InstrWrite(analyzer,"CALC:UNIT:POW DBM")
Controlling the R&S
ESRP Remotely