Quick Start
R&S
®
ESR
120
User Manual 1175.7068.02 ─ 12
Using backslashes
In programming languages such as C, C++ or programs such as MATLAB or NI
Inter-
active Control, a backslash starts an escape sequence (e.g. "\n" is used to start a new
line). In these programming languages and programs, two backslashes instead of one
must be used in remote commands, e.g. in
instead of
MMEM:STOR:STAT 1,'C:\USER\DATA\TEST1'
use
MMEM:STOR:STAT 1,'C:\\USER\\DATA\\TEST1'
3.6.1.1
Linking the Remote Control Library for Visual Basic
Programming notes:
●
Outputting text using the print function
Using the print method, this example displays the value of the variable
MyVar
in
the "Immediate" window of the Visual Basic development environment. Note that
the print method only applies to objects that can display text.
Debug.Print MyVar
●
Accessing the functions of the
VISA32.DLL
To enable users to create Visual Basic control applications, the
VISA32.BAS
file
must be added to a project so that functions of the
VISA32.DLL
can be called. In
addition, the
VPPTYPE.BAS
file must be added to the project. This file contains
constants and definitions for error handling, timeout values, etc.
The modules
visa32.bas
and
vpptype.bas
can be found under
<VXIpnpPath>\WinNT\include
(typically
C:\VXIpnp\WinNt\include
).
As an alternative, a reference to the
VISA32.DLL
can be added to the project.
Brief Introduction to Remote Control