Keysight Pathwave 89600 VSA .NET API
Macro Class
Members  See Also 
Agilent.SA.Vsa.Interfaces Assembly > Agilent.SA.Vsa Namespace : Macro Class


Glossary Item Box

This class represents a user-supplied code element that is used to programmatically control the Keysight 89600 VSA software.

Syntax

Visual Basic (Declaration) 
Public MustInherit Class Macro 
   Inherits RemotableObject
   Implements IPropertyInfoIPropertyInfo2IRemoteNotifyPropertyChangedIRemoteNotifyPropertyInfoChanged 

Remarks

Macros allow the user to automate a set of actions performed using the user interface. You can record a macro by starting the macro recording mode on the Utility > Macros dialog. As you perform a set of actions from the user interface, the code required to replicate those actions via the public API is recorded. When the "End Record" button is pressed, the code is emitted into a new macro in the currently selected recording language.

Macros are each stored in a separate subdirectory with the same name as the macro. The directory contains the recorded source code, a Microsoft Visual Studio-compatible project file, and additional infrastructure code to allow the macro to be run as an external process. Compatible versions of Microsoft Visual Studio include both 2008 and 2010. The Visual C# and Visual Basic Express editions will also work.

When a macro is run from the Keysight 89600 VSA software user interface, the assembly containing the macro code is loaded into the Keysight 89600 VSA software process, the macro code is run, and when it returns the assembly is unloaded. The code runs in a separate thread so it cannot impeded the responsiveness of the rest of the application.

Requirements

Target Platforms: Windows 11 Professional or Enterprise; Windows 10 Professional, Enterprise, or Education (64-bit)

See Also