LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

elapsed time? (simple question)

What I'm trying to do with elapsed time is so simple (or so I thought) yet I can't seem to figure out how to do it.

All I want is to keep track of the time elapsed since the VI is executed and then output that time (in seconds or minutes or whatever) as some sort of string or double.

Any help is appreciated.

Thanks
0 Kudos
Message 1 of 3
(2,778 Views)
Use "Tick Count (ms)" function which is placed in the "Time and Dialog" functions palette, twice. Place one of the mentioned funtion before executing your program and another one after the execution is finished, then simply subtract the output of the second tick count to the first one. The result will be the execution time of your program in milliseconds.

Try the above and the problem will be solved!

Kasra
0 Kudos
Message 2 of 3
(2,773 Views)

Another solution is to use the get date/time in seconds vi.
This will avoid wrap around problems over long runs

Message Edité par chilly charly le 12-30-2005 02:21 AM

Chilly Charly    (aka CC)
Message 3 of 3
(2,769 Views)