There are many cases where a user may want programmatic control of the VNA. Examples include automating a test sequence, manufacturing testing, orchestrating a complex measurement involving various pieces of test equipment, gathering a time series of data, or as a convenient way of getting data, files or images transferred from the VNA to a pc for further analysis.
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 4 for using the LIST command to output the full set of supported GPIB mnemonics directly from the VNA. For LabVIEW programmers the best way to contol VectorStar is with the native MS464X LabVIEW driver. But if you’re familiar with Lightning, VectorStar also supports Lightning commands you can use the Lightning 37XXX LabVIEW driver to control VectorStar. This document uses a combination of MS464X driver VIs and VISA Reads and Writes to send commands to the VNA and to get data from the VNA. With this combination method, we use the driver to accomplish many procedures.
The beauty of using VISA is that the only thing that needs to be changed for any of these possible communication protocols is the connection string. The rest of the code should be exactly the same (except for SOCKETS which are not covered in this document). For TCP/IP we recommend using VXI-11 since it better implements the IEEE 488.2 standard and all status checking. The Getting Started section of the Programming Examples shows how to set up for communication over VXI-11 (TCP/IP).