LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help! Want to read from a xl file and get an output voltage value!!!

Hello..
I`m a beginner, so please help..

My program should output an voltage value that is read from an xl-file with one collum. The most important is that each values in the xl graph should be read per iteration. So that the file is read over time. I want to use this xl file to controll the output signal over time.

Can anyone show me how this VI would look like, and what would the xl file look like??
0 Kudos
Message 1 of 2
(2,645 Views)
The easiest way to do this is to save your Excel file as a comma or tab separated text file and not the native Excel format. Then you can use Read From Spreadsheet File (on the File I/O palette). Using this, you can read the file all at once and then just have a 1D array that you can wire to a while or for loop so that with each iteration of the loop, you get one element in the array. A for loop automatically indexes an input array. Reading the file all at once will be more effecient that reading the file line by line.
0 Kudos
Message 2 of 2
(2,635 Views)