Download Print this page
Keysight Technologies ENA Series Demo Manual
Keysight Technologies ENA Series Demo Manual

Keysight Technologies ENA Series Demo Manual

Network analyzer - vba programming (usermenu)
Hide thumbs Also See for ENA Series:

Advertisement

Quick Links

Demo Guide
Keysight Technologies ENA Series Network Analyzer – VBA Programming (UserMenu)
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 UserMenu buttons
Required Instrument and fixture
ENA series network analyzer (E5071C or E5061B)
Band pass filter (BPF)
In this demo, we will use BPF (Center frequency =
1.09 GHz, BW = 15 MHz) but you can use another
filter. Prepare appropriate cable and adapter to
connect between ENA and DUT.
1. Connect DUT to E5061B
In this demo...
– Code simple VBA macro for bandpass filter measurement
– Apply VBA macro to UserMenu 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
N-Type Cable
Sub main()
Call Setup
End Sub
Sub Setup()
SCPI.SYSTem.PRESet
SCPI.SENSe.FREQuency.CENTer = "1.09E9"
SCPI.SENSe.FREQuency.SPAN = "200E6"
SCPI.CALCulate.PARameter.Count = 2
SCPI.DISPlay.WINDow.Split = "D12"
SCPI.CALCulate.PARameter(2).DEFine = "S21"
SCPI.SENSe.BANDwidth.RESolution = 1000
MsgBox "Setup done"
SCPI.DISPlay.WINDow.TRACe(1).Y.SCALe.AUTO
SCPI.DISPlay.WINDow.TRACe(2).Y.SCALe.AUTO
End Sub
c. Save VBA program and exit VBA editor
Click
box appears. Specify the file name and location and
click Save.
Click
icon of the VBA editor. The Save As dialog
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.

Advertisement

loading

Summary of Contents for Keysight Technologies ENA Series

  • Page 1 Demo Guide Keysight Technologies ENA Series Network Analyzer – VBA Programming (UserMenu) Procedure overview In this demo... Connect DUT to ENA – Code simple VBA macro for bandpass filter measurement Launch VBA editor, and code VBA program – Apply VBA macro to UserMenu buttons...
  • Page 2 Keysight | ENA Series Network Analyzer – VBA Programming (User Menu) – Demo Guide 4. Add Bandwidth Search Module 5. Apply VBA procedure to UserMenu buttons 6. Use UserMenu Buttons a. Open VBA Editor a. Open VBA Editor a. Press “Setup” button to run Setup procedure b.