Output Window
The API 1) Access Preamble Indicator, or 2) Application Programming Interface and SCPI commands while interacting with the 89600 VSA user interface.
window provides an area for macros to write data. In addition, the window has the ability to echo .NETWriting to the Output Window
To write text to the System.Diagnostics.Trace.
window, write to System.Diagnostics.Trace. The window will echo any text written to theExample C# syntax: System.Diagnostics.Trace.WriteLine("Text to print in the Output window");
The
window can only be written to from a Macro. Writing to the window from an external process is not supported.Enabling Code Output with Show Code
The
window can echo 89600 VSA .NET API and SCPI commands that correspond to changes in VSA parameters, input extension parameter changes, and other functionality. To enable this output, select SCPI, .NET or both from the drop-down menu.The Show Code feature is intended to show changes to the state of VSA that are made via the VSA programmatic API. These changes may be made directly to the programmatic API, or they may be made by interacting with the GUI which in turn calls the programmatic API. While using the GUI, the equivalent programmatic API calls will be echoed to the output window if support for that exists in the programmatic API.
When SCPI is selected, different choices about the format of the SCPI emitted are possible in the
drop-down menu (Exclude Optional Nodes, Short Form and Include Optional Indexes).Some functionality that is controllable via the .NET API is not SCPI-controllable. In those cases, a "Can't find SCPI for <.NET API call>" message will appear in the output.
Some measurements may not be supported (or may be only partially supported) by the SCPI Show Code feature.
Running a Macro or Program that exercises the VSA .NET API can output equivalent SCPI for the property setter and method calls (not for getters).
Clearing the Output Window
Click the
button to remove all data from the Output window. This cannot be undone.See Also