Keysight Pathwave 89600 VSA .NET API
Multi-measurement C# Demo Macro
Send Feedback
Example Programs > Multi-measurement C# Demo Macro

Glossary Item Box

A Multi-measurement C# macro is provided to illustrate setting up multiple measurements and gives an example for each of the multi-measurement acquisition styles: Shared; Independent, Concurrent; and Independent, Non-concurrent.

The macro project files are located in the following directory:

%PROGRAMFILES%\Keysight\89600 Software 20xx\89600 VSA Software\Examples\Macros\MultiMeas

where 20xx is the version number of the 89600 VSA.

To run the macro:

  1. Import the macro
    1. Click Utilities > Macros > Import
    2. Browse to the directory listed above
    3. Click Open
  2. Select the macro from the list
  3. Click Build & Run
  4. Open the Output window to view the results (Window > Output)
You can edit macros using the built-in Code Editor. However, for a better programming experience, you can use Visual Studio 2010 or newer to edit macros. If you don't have access to a professional edition, the Express editions are freely available from the Microsoft Visual Studio Express website.

This measurement demo performs the following steps:

  1. Set up two Analyzer Configurations containing simulated hardware
  2. Run a single Vector measurement
  3. Shared Acquisition
    1. Duplicate the Vector measurement
    2. Set both measurements to share an Analyzer Configuration
    3. Run both Vector measurements simultaneously
  4. Independent, Concurrent Acquisition
    1. Disable sharing for both measurements
    2. Set each measurement to use a different Analyzer Configuration
    3. Run both measurements concurrently
  5. Independent, Non-concurrent Acquisition
    1. Set both measurements to use the same Analyzer Configuration
    2. Run measurements sequentially