When you want to control the E5063A internally, you can use COM objects alone or in conjunction with SCPI commands and the Parse object. The latter method is a little slower than the former method because the Parse object is used to parse the messages of SCPI commands.
Dim ena
set ena = CreateObject("E5070.Application")
ena.scpi.display.split = "D12_34"
ena.scpi.display.window(2).activate
Dim ena
set ena = CreateObject("E5070.Application")
ena.parse "DISP:SPLIT D12_34"
ena.parse "DISP:WIND2:ACT"
You can use this with VB Script. If you install the Excel (Excel VBA) or other programmable software in the E5063A, It also can control the E5063A.
Some sample programs are listed in Sample Programs.
Macros are executable programs that you write, load into the analyzer, and then run from the analyzer. Macros (.vbs and .exe) can be executed by clicking its file on the file explore. However, you can execute it from Softkey or Hardkey. You can have up to 25 macros set up to run on the analyzer.
Press Macro Setup > Macro Setup ... .
Click Edit to start the Edit Macro Setup dialog.
In the Macro Title box, type a descriptive title for your macro.
Click Browse.
Find and select your executable file. Change Files of Type if necessary.
Click OK on the Edit Macro Setup dialog.
Change the order by Up or Down keys as necessary.
Click OK on the Macro Setup dialog.
Press Macro Menu, then registered macro is listed in the softkey.
Click the desired softkey to run the macro.
The E5063A 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 VB Script: Using User Menu.