®
R&S
FSVA/FSV
7.2.1.1
Réglage des registres d'état de la commande à distance
REM ************************************************************************
Public Sub SetupStatusReg()
'--------- IEEE 488.2 status register --------------------------------------
CALL InstrWrite(analyzer,"*CLS")
CALL InstrWrite(analyzer,"*SRE 168")
'STAT:OPER-,STAT:QUES- and ESR-Register
CALL InstrWrite(analyzer,"*ESE 61")
'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 ************************************************************************
7.2.1.2
Réglages par défaut pour les mesures
REM ************************************************************************
Public Sub SetupInstrument()
'--------- Default setting f the R&S FSV ---------------------------------
CALL SetupStatusReg
CALL InstrWrite(analyzer,"*RST")
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")
Guide de démarrage rapide 1321.3066.09 ─ 03
Brève introduction à la commande à distance
Exemples détaillés de programmation
'Reset status registers
'Configure status registers
'Reset instrument
(*)
'Enable Service Request for
'Set event enable bit for:
165