VectorStar™ MS4640A SeriesMicrowave Vector Network Analyzer : Appendix A — Programming with LabVIEW : Example 5 ─ Acquiring Trace Data
 
Example 5 ─ Acquiring Trace Data
This example gets the Real/Imaginary data from the Active Trace and the data comes out in a 1 dimensional interleaved array. We need to decimate the array to get the data into two separate arrays.
Example 5 – Block Diagram – Acquire Trace Data
We first get Frequency Values, and next we get the S-Parameter data which is Real and Imaginary.
In this example we Initialize the VNA and get Real and Imaginary Data from the Active Channel. When there are two sets of data, we need to “Decimate” the 1D array into two arrays since data 0, 2, 4, … is Real data and 1,3,5,… is Imaginary data.
 
Example 5 – Front Panel and Resultant XY Graphs
We send separate traces to each XY Graph.