Controlling the R&S FSVA/FSV Remotely
R&S
®
FSVA/FSV
148Quick Start Guide 1321.3066.02 ─ 06
Last of all, the level detectors are linked to the selected trace mode in the default
setting.
The settings automatically calculated in the default setting are indicated with an
asterisk (*) in the following program example.
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
Brief Introduction to Remote Control