Specifications

Chapter 13 213
Use of Macros
Macro Function Overview
13. Use of Macro
Macro Function Overview
By using the macro function, you can execute the following operations.
1. Control the E4991A
From E4991A VBA through COM object, you can control the E4991A.
2. Control peripheral equipment
You can use a macro (E4991A VBA) to control peripheral equipment connected
through the USB/GPIB interface of the E4991A.
3. Automate formulaic processes that are used repeatedly
By using a macro, you can organize multiple processes of the E4991A into a single
process. For example, it is possible to automate the resetting of measurement
conditions such as sweep range and measurement averaging numbers within the
program and repeat the measurement. This makes operations easier and prevents
operation errors from occurring. Also, if you compose the formulaic parts of a program
as a module, you can call it for reuse from another program, which can be an effective
use of program assets.
4. User interface through dialog boxes
By using the user form, which is one of the key features of E4991A VBA, you can
construct a visual user interface. Even if the user is not used to the operations of the
E4991A, he or she can follow the direction displayed on the screen, execute the
measurement, and input the data. Therefore, you can prevent operation errors due to
user mistakes.