E4990A Help
326
8. Click OK on the Macro Setup dialog.
Executing Macro by Soft key
1. Press Macro Menu, then registered macro is listed in the softkey.
2. Click the desired softkey to run the macro.
Executing Macro by Hard key
• Pressing Macro Run executes the macro which is registered at the top
of list.
Using User Menu Function
The E4990A lets you perform procedures assigned to specific softkeys
(Macro Setup > User Menu > Button 1 to Button 10), without using user
forms, when that softkey is pressed. This function is called the user menu
function.
To execute a procedure assigned to a softkey, you need to generate an
event of pressing the softkey.
Refer to Using User Menu.
Reading Data
•
Overview
• Sample Program
Other topics about Using Macro
Overview
This sample program demonstrates how to save the formatted data arrays
in csv file (Result.csv)
1. Copy the following code into a Notepad file.
2. Save the file on the analyzer storage in the D: folder. Name the file
as "readingData.vbs".
3. Double-click the file to execute.
Sample Program
On Error Resume Next
Dim ana
Dim Result
Dim Freq
Dim StrTemp
Dim objFSO
Dim objFile
Set ana = CreateObject("E4990.Application")