ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data reading rate

I am trying to control the rate at which a file is read. (ex. one value per second) How do you set the program to read one value from a text file per time value? Also, if the time values were included in the text file, how would you correlate the time value to the other graphical value?

Thank you!
Ellie
0 Kudos
Message 1 of 4
(2,894 Views)
I would set a loop with a Read Characters function set to read one value or character or whatever. Also in the loop, put a Wait Until Next ms Multiple set for 1000. This will run the loop once per second.

If you read your value and then read the next time interval, you can use that interval to set the timer for your next read. I hope that's not too confusing.

Rob
0 Kudos
Message 2 of 4
(2,894 Views)
I don't understand where in the loop to put the Wait Until Next ms Multiple. What do I connect the output to?

Thank you.
0 Kudos
Message 3 of 4
(2,894 Views)
If i'm not wrong, you must put the wait inside the loop, and don't have to connect the output anywhere, this way, the loop will wait untill the time you put in it to execute again.
Hope this helps
0 Kudos
Message 4 of 4
(2,894 Views)