LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Resetting elapsed timer express vi manually

I am trying to reset the elapsed timer express vi and for some reason I couldn't do it. I was checking the Time has Elapsed bool inside my case statement and always I get the true case.
0 Kudos
Message 1 of 7
(3,561 Views)

hi romesh,

  why dont you change the mechanical action of the switch to latch when released  and during configuration itself check the option "automatically reset the time target" and remove the property node for the reset control.

 

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


0 Kudos
Message 2 of 7
(3,553 Views)

If you set it Automatically reset we dont need a switch. Here is the problem in making it switch automatically based on what I want to

do. I have two subvi on my main vi within a case statement for pressure and vacuum. If the case is true I run pressure check subvi 

and false it runs vacuum check subvi. Inside the pressure subvi I wait for pressure to reach a max threshold or timeout using this 

elapsed timer for 4sec(either of the event) and flip the switch for the case statement in the main subvi to read vacuum. Inside the

vacuum I do the same thing but timeout here is 8sec instead 4 as it takes more time to reach the threshold. If I use automatically 

reset my pressure subvi works fine for first time and by the time I finish the vacuum subvi my timer has expired twice and as soon as

I come into the pressure subvi its already the timer has already expired and I switch to vavuum subvi instantly and wait for 8sec. I

didnt want this behaviour. So that'z why I thought I will reset it manually.

 

Thanks

0 Kudos
Message 3 of 7
(3,535 Views)
Any suggestion on how to reset the Time has elapsed or timer manually.
0 Kudos
Message 4 of 7
(3,520 Views)

Using this code, the reset functionality works perfectly.  Try building this code and see if this works for you

Reset Timer.png

National Instruments
Applications Engineer
0 Kudos
Message 5 of 7
(3,500 Views)

Thanks Scott for your reply. The reset control you have what is the mechanical action of that switch.

 

 

0 Kudos
Message 6 of 7
(3,497 Views)
It's a latch when released, but the mechanical action doesn't matter too much.  If it's a switch then it will constently reset while it's set as true and thus the time will never reach the elapsed time.  If it's a latch then it will reset and start the count again immediately.
National Instruments
Applications Engineer
0 Kudos
Message 7 of 7
(3,490 Views)