LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pull data from 'write to spreadsheet file'

Hello,
 
Attached is a file that I wrote data to from one of my programs.  (The file can be opened with wordpad for proper viewing).   The 1st column contains frequencies, the second column contains corresponding tuned data.  I would like to extract the first three frequencies and corresponding tuned data, to be put in an array that will be used for further sweeps.  Bascially, I would take the first three frequencies:  794, 809 and 824, put that data in an array.  Then in my first sweep with the frequency of 794, call the corresponding tuned value of 0.2078 to be used in the sweep, then for the 809 sweep, call the corresponding tuned value of 0.2126 and so on. 
 
Your help will be greatly appreciated.
 
Thanks,
Rajesh.
0 Kudos
Message 1 of 4
(2,821 Views)
Hello Rajesh,

The attached VI reads the data from the file and also indexes the first three rows.
Hope this helps.

Prashant.
0 Kudos
Message 2 of 4
(2,817 Views)
Hello,
 
How can I scan the string and extract the value associated with a specific frequency?  For example, say that I wanted to analyze 741, the associated value is 0.2078.  How can I extract that specific value?
 
Thanks,
Rajesh.
0 Kudos
Message 3 of 4
(2,772 Views)
A basic function in LabVIEW is the For loop that will auto-index an array. The simple VI below shows how to extract the frequency and associated value for each row.
0 Kudos
Message 4 of 4
(2,769 Views)