LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make arrays from set of values?

Hi, I am building one VI for controlling one Lockin amplifier.
I have built a VI to do frequency sweep and measure frequency, X-channel and Y-channel voltage outputs. In my VI, I am using one already built subVI that outputs X-channel volatge and Y-channel volatge for a given frequency. This subVi outputs set of frequency, X and Y volt values one at a time.
I want to store these values in a 3 column format (with frequency, X-voltage , Y-voltage as columns). I am not sure how can I store the values? I also want that at the end of the sweep I can write the data to an excel file.
I would appreciate if someone could tell me in detail how to do this.
0 Kudos
Message 1 of 3
(2,619 Views)
For each sweep you can use the build array function to for a 1D array of Freq, X-voltage and Y-voltage. Then by enable indexing on an outer loop you can form a 2D array with all the elements properly placed.
0 Kudos
Message 2 of 3
(2,602 Views)
Here is an update on how to write the data to excel.
0 Kudos
Message 3 of 3
(2,600 Views)