LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

while reading a file how to put a delay between each reading

While reading a text file how to generate a delay between each reading?
0 Kudos
Message 1 of 3
(2,637 Views)

Hi,

 

check this out:  http://forums.ni.com/t5/LabVIEW/read-and-average-n-data-from-text-file/m-p/1189799

 

If you inculde in the solution VI the "Wait (ms)" from the Timing library I think it will do what you want.

 

Krivan

0 Kudos
Message 2 of 3
(2,628 Views)

 


@harithota wrote:
While reading a text file how to generate a delay between each reading?

 

There does not appear to be any reason at all to read the file line by line. The example noted above is not really what you want to use either. Read the entire file at once and pass the array to the for loop, taking advantage of it's auto-inexing feature. Get rid of all that split and dynamic data silliness. I assume that you want to output a single data point at a time.

 

The ost above is correct that just need a wait function inside your loop.

0 Kudos
Message 3 of 3
(2,613 Views)