Quick Start Guide 1302.6163.62 - 04
7.3
R&S ESU
Brief Introduction to Remote Control
Basic Steps in Programming using the VISA Interface
The instrument can be remote controlled via the GPIB interface. For details on setting the
GPIB interface see chapter
, section
“ Setting the GPIB Interface” on page 2.20
Remote control via network (LAN interface) is provided also. For details on configuring the
LAN interface see chapter
“ Configuring the LAN Interface” on page 2.30
The following programming examples are hierarchical in structure, i.e. the later examples are
based on the preceding ones. This makes it possible to easily assemble a well-functioning
program by using the modules of the program examples. More complex examples are
provided in the Operating Manual, chapter 7.
The chapter is divided into the following sections:
•
“ Basic Steps in Programming using the VISA Interface” on page 7.3
•
“ Detailed Programming Examples” on page 7.9
7.1 Basic Steps in Programming using the VISA Interface
The following examples explain how to program the instrument and can be used as a basis
for solving enhanced programming tasks.
Visual Basic was used as the programming language. However, the programs can be
implemented in other languages as well.
7.1.1 Linking the VISA Library for Visual Basic
7.1.1.1 Programming notes:
Outputting texts by using the "Print" function
The following programming examples are based on the assumption that all subroutines are
created as part of a form (file extension .FRM). In this case, the following notation is permitted:
Print "Text"
However, if the subroutines are created as a module (file extension .BAS), the name of the
form that contains the required print method must be placed in front of the print instruction.
Thus, if a form is named "Main", the print instruction will be as follows:
Main.Print "Text".
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, e.g. in
“ Storing Instrument Settings” on page 7.18
instead of
MMEM:STOR:STAT 1,'D:\USER\DATA\TEST1'
use
MMEM:STOR:STAT 1,'D:\\USER\\DATA\\TEST1'
Summary of Contents for esu
Page 26: ...R S ESU Contents 6 Quick Start Guide 1302 6163 62 04 ...
Page 28: ......
Page 32: ...R S ESU 0 4 Quick Start Guide 1302 6163 62 04 ...
Page 88: ...R S ESU Preparing for Use Operating System Properties 2 38 Quick Start Guide 1302 6163 62 04 ...
Page 104: ...R S ESU Basic Operation Setting Parameters 4 12 Quick Start Guide 1302 6163 62 04 ...
Page 201: ...Quick Start Guide 1302 6163 62 04 R S ESU Appendix Appendix ...
Page 202: ...Quick Start Guide 1302 6163 62 04 R S ESU Appendix ...