LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I need timed data logging with continuous graphing

I am graphing continuous temperature measurements, but I only want to log onto a spreadsheet measurements every hour. How do I do that?
0 Kudos
Message 1 of 3
(2,668 Views)
Hello,

In order to log the measurements every hour, you will want to implement a "Wait (ms)" function. This function can be added to the block diagram by [right-clicking] and selecting the following:

[All Functions] >> [Time & Dialog] >> [Wait (ms)]

You will want to place this wait function inside your code and wire a constant to the wait function with a value of 3,600,000 (60min/hr x 60sec/min x 1000ms/s). To wire a constant to the wait function, [right-click] on the input terminal of the "wait (ms)" icon and select [Create]>>[Constant].

I hope this helps. Please let me know if I can further assist you.

Kind Regards,

Joe Des Rosier
National Instruments
0 Kudos
Message 2 of 3
(2,668 Views)
That will work until the user tries to stop the program and it doesn't exit until the 1 hour timer expires. Much better is to use the Elapsed Time function in LV 7 and use the output of that to go to a different state in the program or wired to a case statement.
0 Kudos
Message 3 of 3
(2,668 Views)