LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Store counter on how long program has been running

As I mentioned before, read the file outside the loop. Pass the total time into the loop via a shift register (not the running time of the loop) You add the running time to the file's total time and update your display. When you exit the loop (presumably pressing a stop button) you write the contents of the total time shift register to the file, again, outside the loop.

 

Your use of local variables works, but is not generally looked upon as a code coding style. Shift registers and wires are the best way to control data flow.

Message Edited by Phillip Brooks on 09-08-2009 07:27 PM

Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.

"You are what you don't automate"
Inplaceness is synonymous with insidiousness

0 Kudos
Message 11 of 11
(384 Views)