EasyManua.ls Logo

Agilent Technologies E5071C - Page 1111

Agilent Technologies E5071C
2685 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
E5071C
1338
The E5071C allows you to run a program from E5071C screen using one of
the four methods listed below.
1. Display the E5071C measurement screen following the instructions
given in Switching to the E5071C Measurement Screen.
2. Run the VBA program (procedure) using the following key sequence:
• Macro Setup > Select Macro - Module xxx
where "Module" is the object name (Name property shown in the
property window) and "xxx" is the procedure name.
• Press the Macro Run key on the E5071C front panel. For a program
to be run from the measurement screen, its procedure name must be
"Main" (subprogram enclosed between Sub Main() and End Sub), and
its object name (Name property as displayed in the property window)
must be "Module1".
• When you are working with the E5071C measurement screen,
the E5071C's macro environment only provides access to those
VBA programs that are created as subprograms (enclosed
between Sub and End Sub) in a standard module.
Loading and Executing Programs in Batch Process
This section describes how to load and execute a program (VBA project) in
a batch process by pressing the softkey corresponding to the program
name.
1. Save the VBA program (VBA project file) into the following folder.
D:\VBA
o This feature is available only for programs saved in
D:\VBA. This feature is not available for programs saved in
subfolders of D:\VBA.
o When copying a VBA program to D:\VBA from another
folder, copy all the files necessary to execute the program
to appropriate folders. When copying a factory-installed
VBA program into D:\VBA, choose only its VBA project
file.
2. Press Macro Seup key.
3. Click Load & Run.
4. Press the softkey corresponding to the VBA project file name of the
program you want to execute. The pressed VBA project is loaded and
the program whose procedure name is set to "Main" (subprogram
enclosed between Sub Main() and End Sub) and whose object name
(Name property as displayed in the property window) is set to
"Module1" is executed.

Table of Contents