Column Control DTX

ENA Series Network Analyzer – VBA Programming (UserMenu)

Flyers

Procedure overview

  1. Connect DUT to ENA
  2. Launch VBA editor, and code VBA program
  3. Run VBA Macro
  4. Add bandwidth search module
  5. Apply VBA macro to User Menu buttons

In this demo...

  • Code simple VBA macro for bandpass filter measurement
  • Apply VBA macro to User Menu buttons

2. Launch VBA editor, and code VBA program

a. Press [Macro setup] hard key then press VBA Editor soft key VBA editor

b. Create module and code procedure

Click Insert in the menu bar then click Module

Code as shown below in Module1

c. Save VBA program and exit VBA editor

Click icon of the VBA editor. The Save As dialog box appears. Specify the file name and location and click Save.

Click icon of the VBA editor

3. Run VBA macro

a. Press [Macro Run] Hard key.

The ENA calles main() procedure, and this VBA program will set up the measurement parameters as shown below.

4. Add Bandwidth Search Module

a. Open VBA Editor

b. Modify Sub() procedure of Module1 as below code

c. Add below procedure on Module1

d. Save VBA program and run

Click icon, then icon of the VBA editor

Press [Macro Run] hard key.

This code sets the measurement parameter, then make bandwidth search function as below

5. Apply VBA procedure to UserMenu buttons a. Open VBA Editor b. Modify Sub() procedure of Module1 as below code

c. Create UserMenu module

Click E5061B_Objects then Double-Click UserMenu

In the object box in the code window, select UserMenu as shown below

d. Code below procedure on UserMenu module

e. Save program and run Click icon, then icon of the VBA Editorpress [Macro Run] hard key.

6. Use UserMenu Buttons

a. Press “Setup” button to run Setup procedure

b. Press “Bandwidth” button to run Bandwidth_Search procedure

×

Please have a salesperson contact me.

*Indicates required field

Preferred method of communication? *Required Field
Preferred method of communication? Change email?
Preferred method of communication?

By clicking the button, you are providing Keysight with your personal data. See the Keysight Privacy Statement for information on how we use this data.

Thank you.

A sales representative will contact you soon.

Column Control DTX