LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving data from 1d array of cluster of 2 elements: HP 8752 driver

I'm using the following driver to communicate with my HP 8720C Network Analyzer
 
...So far I've easily been able to use the "collect and display data" vi, except for saving data. All I want to be able to do is save the data from a single sweep in spreadsheet format. Displaying the data is no problem, which I can then print, however, the output data file is a mess. The VI is rather complicated, and I can't figure out how to save the data in a nice pair of columns of numerical values.
 
The VI's output data is in the format of a 1 dimensional array of clusters of 2 elements (ie the x-y values). I would've thought it would be trivial to do this, since this is the standard format for data for the classic X-Y graph. So far, I haven't been able to come up with anything. Any ideas?
 
Thanks,
 
Spence
 
 
0 Kudos
Message 1 of 3
(3,536 Views)
Feed the array of clusters into a for loop with autoindexing enabled (the default). Inside the loop use the Unbundle primitive to extract X and Y for one point. Use Build Array to make a two-element array from X and Y. Wire this array out of the for loop and you will have a two dimensional array with two columns and as many rows as there are elements in the array of points.

Lynn
0 Kudos
Message 2 of 3
(3,531 Views)

Lynn,

Thanks so much for the pointer! it worked perfectly 🙂

 

-Spence

0 Kudos
Message 3 of 3
(3,499 Views)