R&S ESR Series User Manual page 126

Emi test receiver
Table of Contents

Advertisement

®
R&S
ESR
'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")
CALL InstrWrite(analyzer, "*RST")
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
User Manual 1175.7068.02 ─ 12
Brief Introduction to Remote Control
'Reset status register
'Reset instrument
Quick Start
123

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents