Creating a Macro

To make a useful macro:

  1. Learn and practice the measurement procedure on the 89600 VSA software.

  2. Record a macro while performing the measurement.

    Click Utilities > Macros, select a programming language, and click Record.

    Click End Record when you are finished changing VSA parameters.

    You can also view the corresponding lines of code as you change VSA parameters when you enable code output in the Output window.

  3. Review the generated code.

    Open the macro in an editor by clicking the dropdown part of the Edit button and selecting an editor.

  4. Complete the macro by adding commands that:

    • Collect and compute the measurement results

    • Display and save the results

    • Prompt the operator for input

    • Loop and branch the macro

The next topic, Creating a Macro: Example, shows you how to use portions of the above process to create a macro that measures ACPR Adjacent Channel Power Ratio - A measurement of the amount of interference, or power, in the adjacent frequency channel. ACPR is usually defined as the ratio of the average power in the adjacent frequency channel (or offset) to the average power in the transmitted frequency channel. ACPR is a critical measurement for CDMA transmitters and their components. It describes the amount of distortion generated due to nonlinearities in RF components. The ACPR measurement is not part of the cdmaOne standard. of an IQ modulated signal.

See Also

About Macros

Importing and Exporting Macros