LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

elasped time

how can i display elapsed time in a case structure??

 

my vi is a case structure with just the system exec vi and i wish to display the elapsed time or anything else that indicates the system exec vi is running.

0 Kudos
Message 1 of 5
(2,966 Views)
Presumably you have System Exec set to wait until finished. In this case you need to have an independent loop that's running in parallel to System Exec to display elapsed time. When System Exec ends then you end the loop. Make sure you don't create a data dependency between the loop and any of the outputs of System Exec. Otherwise the loop will not start until System Exec ends.
0 Kudos
Message 2 of 5
(2,952 Views)

you are correct i have the system exec set to wait.

 

 i still havn't figured out how to do this yet

0 Kudos
Message 3 of 5
(2,938 Views)

There are many ways to do this. One way is to use local variables, though that's clumsy. Another is to use notifiers. Another is to use a queue. Another ...

 

Here is an example using notifiers:

 

"my.bat" is a simple batch file that simply waits 5 seconds. 

Message Edited by smercurio_fc on 11-01-2008 02:33 PM
0 Kudos
Message 4 of 5
(2,926 Views)

To criticize my own comment:

 


smercurio_fc wrote:

There are many ways to do this. One way is to use local variables, though that's clumsy.


I should have said: One way is to use local variables, though that's clumsy, but acceptable - you just need to make sure you don't have a race condition. Smiley Wink

 

0 Kudos
Message 5 of 5
(2,922 Views)