
Brief Introduction to Remote Control
R&S
®
FSVA/FSV
147
Quick Start Guide 1321.3066.02 ─ 05
'timeout values are in milliseconds
'This example assumes the instrument IP address 10.0.0.10
'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 ***********************************************************************
7.1.2.3
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*************************************************************************
7.1.2.4
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()
Basic Steps in Remote Control Programming
Summary of Contents for R&S FSV
Page 25: ......