LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Resetting Elapsed Timer

Hello,
 
I am using the elapsed time express VI in my application in a while loop to pause current sequence for user defined time(which I have wired to Time Target), and as soon as the time has elapsed output becomes True, the application resumes....and after completing other tasks I exit from loop.
The pause works fine for 1st time, but my problem arises when i exit the loop once, the elapsed time VI continues counting even though the loop has been stopped.  The next time the program enters the state, it doesnt pause the sequence (because the timer has passed the set time already),  I have also wired a "True" to Auto Reset also but somehow I cant able to reset it.
 
So, what I want is that every time I enter in that loop my elapsed time value should start from 0 so that I can pause the sequence as required.
 
Please reply soon with some example. or any other suggestion  
 
JP
0 Kudos
Message 1 of 4
(2,968 Views)

Hello James,

I here by attach a simple example which demonstrates use of Resetting Elapsed Timer.

Let me know whether you still have some doubts?

All the best.

Karthik SP
0 Kudos
Message 2 of 4
(2,962 Views)

Hi Karthik,

Thanks for the quick reply, I am attacing a VI which replicates my current application, what I am doing in this is that I have a a case structure which when True , the Delay(Wait) should occur as per time entered in Time Target, and as soon as it completes the case should become False so that I enter again into that Wait Case when I change the Boolean(Wait Case) to true, and at that time , the Elapsed time VI should start couting from 0 again .

I hope you are able to get my problem,

Thanks & Regards

JP

 

 

0 Kudos
Message 3 of 4
(2,955 Views)

James,

According to your requirement,I have juss modified your VI .

Have a look at it...and....

Let me know whether I was able to understand what you exactly need?Smiley Happy

Karthik SP
0 Kudos
Message 4 of 4
(2,946 Views)