From Friday, January 17th 11 PM CDT (January 18th 5 AM UTC) through Saturday, January 18th 11:30 AM CDT (January 18th 5:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Elapsed Time

Solved!
Go to solution

Hi guys I'm using the Elapsed Time to set a wait and to have, at the same time, the chance to stop the waiting.

The problem is that if for example I set wait for 1 minute the first time everything works fine, but when I repeat the same operation (my VI is a state machine so I can put it in an idle state) something goes wrong...I tried to debug but I'm sure that the problem is the Elapsed Time for two reasons: the first is that I have replaced it with Wait (ms) Function and it works properly everytime I want, the second is that I put an indicator on the Elapsed time (s) and the first time I see that it count/wait from 0  to 1sec while the second time in automatic it goes to 5,46 without any countdown.

 

I hope you can help me because this thing is driving me crazy.

0 Kudos
Message 1 of 16
(3,144 Views)

please post your VI and not a image of it.....the problem might be in how to reset the timer input to count properly or to hold it.

0 Kudos
Message 2 of 16
(3,132 Views)

hi sorry for the delay... attached there is the VI..

the problem is in the Max Hold&Peak table as shown in the immage:

 

Immagine.PNG

 

 

Download All
0 Kudos
Message 3 of 16
(3,089 Views)

Hi inuyasha84,

 

I believe you need to reset the elapsed time express VI in order to make it start counting at 0 again.

If you hover the mouse over the VI, you can see that there is an input node for you to reset the function.

 

May i ask why you want to do this when you can use wait(ms) function or time delay function?

 

Hope this help

Best regards,

TuiTui

Message 4 of 16
(3,079 Views)

I tried already with the reset and the error is always there. When it iterates the second time it gives in exit a strange number... it doesn't count from 0 to the value that I set.

Bytheway I need to stop the VI because if for example I did an error in the setup and I have the wait (ms) function setted at 1h I must wait until it finishes (The idea is to do an .exe of this VI).

0 Kudos
Message 5 of 16
(3,075 Views)

Hi inuyasha84,

 

May i know how you reset the express VI?

I attached here a simple VI to show how you can reset the elapsed time.

 

Best regards,

TuiTui

 

 

Message 6 of 16
(3,063 Views)