Specifications
246 Chapter 15
Controlling Peripherals
Overview
Overview
The E4991A macro function (E4991A VBA) can be used not only to automate
measurements but also to control external measurement instruments connected via
USB/GPIB interface by acting as a self-contained system controller (refer to
“Remote
control using E4991A macros” on page 32).
This function performs communications via the COM interface when controlling the
E4991A itself, but it communicates via VISA (Virtual Instrument Software Architecture)
when controlling external measurement instruments.
To control peripherals connected to the E4991A, the following two preparations are
required.
Preparation
Importing definition files
To use the VISA library in the E4991A macro (E4991A VBA), you need to import two
definition files into your project with the Visual Basic editor to define the VISA functions
and perform other tasks. The definition files are stored on the sample programs disk under
the following filenames (for information on importing modules, refer to
“Importing
modules” on page 224).
• visa32.bas
• vpptype.bas