![Rohde & Schwarz 1307.9002K03 Quick Start Manual Download Page 158](http://html1.mh-extra.com/html/rohde-and-schwarz/1307-9002k03/1307-9002k03_quick-start-manual_1477765158.webp)
Controlling the R&S
FSVA/FSV Remotely
R&S
®
FSVA/FSV
143
Quick Start Guide 1321.3066.02 ─ 06
'If the network provides a name resolution mechanism, the hostname of
'the instrument can be used instead of the numeric IP address
'the resource string for GPIB would be "GPIB::20::INSTR''
status = viOpen(defaultRM, "TCPIP::10.0.0.10::INSTR'', 0, 1000, analyzer)
'status = viOpen(defaultRM, "TCPIP::<hostname>::INSTR'', 0, 1000, analyzer)
'status = viOpen(defaultRM, "GPIB::20::INSTR'', 0, 1000, analyzer)
'Set timeout value - here 5s
status = viSetAttribute(vi, VI_ATTR_TMO_VALUE, 5000)
END SUB
REM ***********************************************************************
Initializing the Instrument
Set the remote control status registers and instrument settings to the default
state.
REM ------------ Initializing the instrument -------------------------------
Public SUB InitDevice()
CALL InstrWrite(analyzer, "*CLS") 'Reset status register
CALL InstrWrite(analyzer, "*RST") 'Reset instrument
END SUB
REM*************************************************************************
Switching the Screen Display On and Off
In the default setting, all remote control commands are carried out with the screen
display switched off in order to attain optimum measurement speed. During the
development phase of remote control programs, however, the screen display is
required in order to visually check both the programming of the settings and the
measurement results.
The following examples show functions with which the screen display can be
switched on or off during remote control operation.
REM ------------ Switching on the screen display ---------------------------
Public SUB DisplayOn()
CALL InstrWrite(analyzer, "SYST:DISP:UPD ON")
'Switch on screen display
END SUB
REM*************************************************************************
REM ------------ Switching off the screen display --------------------------
Public SUB DisplayOff()
CALL InstrWrite(analyzer, "SYST:DISP:UPD OFF")
'Switch off screen display
END SUB
REM*************************************************************************
Brief Introduction to Remote Control