LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read data one by one

Hi,
In one of my applications, I have to read data from a file ( text or XL ) one by one  with a fewmilliseconds time delay and process with the data (as if the data is obtained in real time).
 
Could anyone help me in this regard.
Thanks in advance.
radhika venkataraman
0 Kudos
Message 1 of 6
(3,375 Views)

 have to read data from a file ( text or XL ) one by one 

What would be this data that you want read one by one??

Is it a line( string), a excel cell or a character??

regards

Dev

0 Kudos
Message 2 of 6
(3,359 Views)
Hi radhika,

i understood what to you want., this is an example that i am attaching with this post. The example is made for reading numeric data from text file. when you run the vi it will ask you for the path. Give the path for proper text file containing the numeric data one one n number row.

The numeric indicatior will show you the data one by one with a gap of 100 milli seconds.

If need any more assistance write again..

ramme.. darlington_jazz@hotmail.com
0 Kudos
Message 3 of 6
(3,356 Views)
hi....
 
dev,
thanks fro ur response..i have to read numeric value that is stored in an excel file.
i am using labview 7.1
thanks.
 
 
radhika venkataraman
0 Kudos
Message 4 of 6
(3,335 Views)

Hi Ramme,

THank you for your efffort for sending me the file.

As i am using Labview 7.1 , I was not able to open the file.If u can guide me what to do , that should be of great help to me.

thanks,

radhika venkataraman.

0 Kudos
Message 5 of 6
(3,332 Views)
I can't open the example either but what you want to do is pretty simple. If it's a text file, then you can use Read From Spreadsheet File and then an index array function to get the column you want. This will be a 1D array. Wire this to a for loop. The for loop will automatically index the for loop. Put a Wait Until Next ms Multiple inside the loop and any other code you need. If it's a true Excel file, search the forum for Excel examples. You shouldn't have any problem finding dozens. Do the same thing to get a 1D array. If you need a bit more precision in your loop, use a timed loop. You'll just have to index the array.
0 Kudos
Message 6 of 6
(3,327 Views)