From 11:00 PM CST Friday, Feb 14th - 6:30 PM CST Saturday, Feb 15th, 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 Timer Bug ???

Solved!
Go to solution

Is this a bug or why does the exact copy of the timer placed in two different events act differently?

0 Kudos
Message 1 of 8
(3,383 Views)

I cannot view your file but I assume you are dropping two separate instances of the Express VI? Each clone behaves independently, so if you set a time target on one it does not effect the time target of the other, for example.

0 Kudos
Message 2 of 8
(3,362 Views)

Here is a screen shot of the two cases and the front panel shown twice. Please forgive the quick and crappy editing but can you see this JPG? Im not sure if what you are saying applies here

0 Kudos
Message 3 of 8
(3,355 Views)
Solution
Accepted by topic author JeffreyS

Because your Init case only runs one time.  It never gets back around to check the Elapsed Time again!

0 Kudos
Message 4 of 8
(3,348 Views)
Solution
Accepted by topic author JeffreyS

@JeffreyS wrote:

Im not sure if what you are saying applies here


What was said completely applies here.  Each instance of the Elapsed Time keeps its own state (start time, reset time, etc).  So your init will never see the time elapsed as written.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 8
(3,347 Views)

Thanks for replying both of you.

Yes, i changed the event enum to flip back to the init event and they both go on now. Say I have a while loop and this timer is set to 10 seconds. That is all fine and good. Will the 10 seconds be effected if I send the program through a 1000 different loops before coming back? ie: will the timer's 10 seconds take longer than 10 seconds. Why even create a timer this way?

0 Kudos