
R&S ESU
Remote Control – Programming Examples
Introduction
7.2
Operating Manual 1302.6163.12 - 03
7.1 Introduction
The following programming examples have a hierarchical structure, i.e. subsequent
examples are based on previous ones. It is thus possible to compile very easily an
operational program from the modules of the given examples. VISUAL BASIC has
been used as programming language. However, the programs can be translated into
other languages.
Example:
To store instrument settings use:
MMEM:STOR:STAT 1,'D:
\\USER\\DATA\\TEST1'
instead of:
MMEM:STOR:STAT 1,'D:\USER\DATA\TEST1
In this chapter, more complex programming examples are given. In the Quick Start
Guide, chapter 6, basic steps in remote control programming are provided.
7.2 Basic Programming Steps for the VISA Interface
In this section, all basic programming examples about the topic service request are
included:
•
“Initiate Service Request” on page 7.3
•
“Waiting for the Arrival of a Service Request” on page 7.3
•
“Waiting Without Blocking the Keyboard and Mouse” on page 7.5
•
“Service Request Routine” on page 7.6
•
“Evaluation of SCPI Status Registers” on page 7.6
•
“Evaluation of Event Status Register” on page 7.7
Basic examples that explain the programming of the instrument and can serve as a
basis to solve more complex programming tasks are provided in the Quick Start
Guide, chapter 6.
7.2.1
Service Request
The service request routine requires an extended initialization of the instrument in
which the relevant bits of the transition and enable registers are set. In order to use
the service request function in conjunction with a National Instruments GPIB driver,
the setting "Disable Auto Serial Poll" must be changed to "yes" by means of
IBCONF.
In progamming languages as C, C++ or programmes as MATLAB, NI Interactive
Control, a backslash starts an escape sequence (e.g. “\n” is used to start a new
line). In these progamming languages and programms, two backslashes instead of
one must be used in remote commands (for an example refer to the Quick Start
Guide, chapter “Brief Introduction to Remote Control“.)
Содержание ESU Series
Страница 1: ...R S ESU EMI Test Receiver Operating Manual 1302 6163 12 03 Test Measurement Operating Manual...
Страница 25: ......
Страница 27: ...R S ESU Putting into Operation 1 2 Operating Manual 1302 6163 12 03...
Страница 29: ...R S ESU Getting Started 2 2 Operating Manual 1302 6163 12 03...
Страница 31: ...R S ESU Manual Operation 3 2 Operating Manual 1302 6163 12 03...
Страница 349: ...R S ESU Instrument Functions Basic Settings 4 318 Operating Manual 1302 6163 12 03...
Страница 405: ...R S ESU Instrument Functions User Port 4 374 Operating Manual 1302 6163 12 03...
Страница 439: ...R S ESU Remote Control Basics Status Reporting System 5 34 Operating Manual 1302 6163 12 03...
Страница 821: ...R S ESU Remote Control Programming Examples More Complex Programming Examples 7 32 Operating Manual 1302 6163 12 03...
Страница 841: ...R S ESU Error Messages Device Specific Messages 9 10 Operating Manual 1302 6163 12 03...
Страница 854: ...Operating Manual 1302 6163 12 03 10 13 R S ESU...
Страница 855: ...R S ESU 10 14 Operating Manual 1302 6163 12 03...