LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read two sets of data from two spread sheet files to two arrays problem

I need to read two sets of data from two spread sheet files into my LABVIEW PROGRAM. I let the program prmopt for the path of the files.It seems that the program can not make out which file goes to where? It read from one file for one to one array, then When I input amnother FILE PATH, the data in the newly opened file goes into that array(updated with the newly opened file data). How can I let the program run as I expect,one file dat to one array, another file data to another array.
0 Kudos
Message 1 of 3
(2,638 Views)
I think your problem is that you don't know which Read From Spreadsheet function is executing first and which second. Adding some dataflow would help but you really need to provide a custom prompt for each use of the function. The way to do that is to first modify Read Lines From File.vi and add the prompt input to the connector. Save it as a different name and not in the LabVIEW folder. You will then have to modify Read From Spreadsheet File.vi to add a string control as the prompt input, add this to the connector, and also save as a different name. With the changes, you can put a different prompt for each Read that you do and be sure that you're loading the right data.
Message 2 of 3
(2,638 Views)
Thanks a lot!
0 Kudos
Message 3 of 3
(2,638 Views)