There are many cases where a user may want programmatic control of the VNA. Examples include automating a test sequence, orchestrating a complex measurement involving various pieces of test equipment, gathering a time series of data, or as a convenient way of getting data or images transferred from the VNA to a PC for further analysis.
From the Full NI-VISA 5.1.1 installation, you can also select to install Developer Support for .NET Frameworks 2.0, 3.5 and 4.0. It does not automatically install Development Support for the .NET Frameworks so you have to select these to install. Make sure to select “Examples” also. The VISA Version 5.1.1 driver supports the .NET Framework 2.0, 3.5 and 4.0.
VisaNS Search
Search for “VisaNS” in Visual Studio (Local) help to find more information about using the VISA driver.
For the examples below, we’ll use Visual C# 2010 Express Edition. You can download the latest Express Edition for free from the Microsoft website http://www.microsoft.com/express/download.
GPIB Mnemonics
VectorStar has a fairly large set of GPIB commands. This includes a set of Native commands, Lightning commands and Agilent 8510 commands. You use the same commands regardless of the communication method employed. See Example 3 for using the LIST command to output the full set of supported GPIB mnemonics directly from the VNA.