LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to display the running time of the Vi

Hellow!anyone can tell me how to display how long the VI has ran? thanks!
0 Kudos
Message 1 of 7
(4,477 Views)
Attached is one option...... (LV7)
0 Kudos
Message 2 of 7
(4,477 Views)
There's a couple of ways. if you have LabVIEW 7 or higher, you can use the Elapsed Time express VI on the time & Dialog palette. If it's in a while loop, it will display a running elapsed time total in seconds. You'll have to wire a false constant to the Auto Reset input or set the properties to not reset when target time is reached. Or you can use either Tick Count or Get Date Time in Seconds as the very first thing in your program to use as a start time and as the last thing in your program, use the same function and subbtract this finish time from the start time. If you don't want to display anything, you can also use the profiler (tools>Advanced>Profile VIs).
0 Kudos
Message 3 of 7
(4,477 Views)
Thanks for your reply,i tried the Elapsed time VI in a while loop,but it doesnt work,when i connect the "elapsed time(s)" option and run the vi,the time still did not show up
0 Kudos
Message 4 of 7
(4,477 Views)
I don't know what you did wrong without seeing your program but here's one that works.
0 Kudos
Message 5 of 7
(4,477 Views)
Happybird:
Here are a few things to check on the "Elapsed Time" express VI.

1. Make sure that you have unchecked the "Automatically reset after time target" option form the properties menu.
2. Wire a string indicator to the "Elapsed Time" output on the VI.
3. Make sure that this VI is in a loop.

Hope this helps.

-Brett
0 Kudos
Message 6 of 7
(4,477 Views)
"Happybird:
Here are a few things to check on the "Elapsed Time" express VI.

1. Make sure that you have unchecked the "Automatically reset after time target" option form the properties menu.
2. Wire a string indicator to the "Elapsed Time" output on the VI.
3. Make sure that this VI is in a loop.


Hope this helps.


-Brett"
0 Kudos
Message 7 of 7
(4,477 Views)