Output Window

The Output window provides an area for macros to write data. In addition, the Output window has the ability to echo .NET API 1) Access Preamble Indicator, or 2) Application Programming Interface and SCPI commands while interacting with the 89600 VSA user interface.

Writing to the Output Window

To write text to the Output window, write to System.Diagnostics.Trace. The Output window will echo any text written to the System.Diagnostics.Trace.

Example C# syntax: System.Diagnostics.Trace.WriteLine("Text to print in the Output window");

The Output window can only be written to from a Macro. Writing to the Output window from an external process is not supported.

Enabling Code Output with Show Code

The Output 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 Show Code 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 SCPI Options 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 Clear button to remove all data from the Output window. This cannot be undone.

See Also

About Macros

.NET API Reference

SCPI Reference