Running a Macro

To run a macro, follow these steps:

  1. Click Utilities > Macros.

  2. From the list of macros, select the macro you want to run.

  3. Click Build and Run or Run.

You may encounter the following warning when building a macro:

"c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3247: Found conflicts between different versions of the same dependent assembly."

Since this is a warning and not an error, the macro will compile and run. To suppress the warnings, install a copy of Visual Studio that supports .NET Framework 4.

If you record a macro that includes .NET 6+ support, you must configure NuGet to point at the installed VSA client NuGet packages folder before a build will be successful. If nuget is not yet configured, the build will fail and you will see the following error message:

"error NU1101: Unable to find package Keysight.Vsa.Client. No packages exist with this id in source(s)"

See the .NET 6+ Nuget Packages topic in the API 1) Access Preamble Indicator, or 2) Application Programming Interface Reference to configure NuGet for your system.

See Also

Stopping a Macro

Importing and Exporting Macros

Creating a Macro

About Macros