VectorStar™ MS4640A SeriesMicrowave Vector Network Analyzer : Appendix A — Programming with LabVIEW : Example 7 – Output S2P File
 
Example 7 – Output S2P File
This is a good example that uses some VISA Writes and some MS464X driver VIs to accomplish some useful things. Specifically, we are going to send some Native VectorStar commands along with some Lightning commands to output an S2P file from the VNA to the PC.
Example 7 – Block Diagram – Output S2P File
Here we use a combination of VISA and driver commands. First Native GPIB strings are sent to setup the S2P output to 25 data points, Frequency in Hz, and Data Format to Real/Imaginary. I used the Read ASCII ARB function to strip off the header.
 
Example 7 – S2P File Transfered to the PC Controller
Transfer of an S2P file to the pc. When the VI runs it puts up a dialog to allow the user to select a file name. Make sure to save the file with an “.S2P” extension.