Quick Start
R&S
®
ESR
123
User Manual 1175.7068.02 ─ 12
'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 ***********************************************************************
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 dis-
play switched off in order to attain optimum measurement speed. During the develop-
ment 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*************************************************************************
Configuring the Power Save Function for the Display
During remote control operation, it is often unnecessary to display the measurement
results on screen. Although the command
SYSTem:DISPlay:UPDate OFF
switches
off the display of the measurement results, thus significantly improving speed in remote
Brief Introduction to Remote Control