LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Stop run after elapsed time

I've hours per run wired to elapsed time in my VI. The output elapsed time is display out to a cluster display.
How do I get the VI to stop once it has react hours per run elasped time?

And how would I wire to show that time on (hours) once the VI has stopped?

Please let me know what I'm doing wrong.
thanks
0 Kudos
Message 1 of 25
(4,779 Views)
kwok2,
Maybe the thing you want to do is not very clear, So can you explain it in other words and use examples ?
-----------------------------
Ayman Mohammad Metwally
Automation Engineer
Egypt - Cairo
0 Kudos
Message 2 of 25
(4,749 Views)
let me this again.
my hours of run is set to two hours which countdown the time.
my numbers of event is set at two which will count each event.
the hours in the attachment is where i would like to see the accumulative time of the two event.
the hours should not reset until I push the reset button on the front panel. It should just keep adding the time according to the event counter.

How can do that?
0 Kudos
Message 3 of 25
(4,752 Views)
Well, I 'll give you one trick that I use alot when I ever wanted to know:

When will a certain event occur in the future ?
In your case: the event is "Time elapsed for all the events or runs".

It may help you, and may not help you, Good luck

Message Edited by Ayman_Metwally on 02-28-2005 10:36 PM

-----------------------------
Ayman Mohammad Metwally
Automation Engineer
Egypt - Cairo
0 Kudos
Message 4 of 25
(4,737 Views)
UPDATE: before the "Add function" in my last post, you have to multiply the "Total time for all events" by 3600 (60*60)seconds
-----------------------------
Ayman Mohammad Metwally
Automation Engineer
Egypt - Cairo
0 Kudos
Message 5 of 25
(4,738 Views)
Hi Kwok2!

The example VI that I am attaching should greatly help you out! It basically shows the functionality of the Elapsed Time Express VI.

Hope this helps!

Travis H.
National Instruments
Travis H.
LabVIEW R&D
National Instruments
0 Kudos
Message 6 of 25
(4,709 Views)
Travs,

Can you resend it in 7.0 ver.
thanks
0 Kudos
Message 7 of 25
(4,701 Views)
Hi Kwok2,

Here ya go!

Travis H.
National Instruments
Travis H.
LabVIEW R&D
National Instruments
0 Kudos
Message 8 of 25
(4,697 Views)
Travs,

Thanks for the example. But I have another question if you can.
Why add another frame with 1 second wait time? I don't see any difference when I delete this frame.
0 Kudos
Message 9 of 25
(4,678 Views)
Hi Kwok2,

This was just to simulate "code" in your loop. You don't have to have anything there at all if you don't want to. This is just forcing the Elapsed Time Express VI to run after the "code" in your while loop!

Travis H.
National Instruments
Travis H.
LabVIEW R&D
National Instruments
0 Kudos
Message 10 of 25
(4,667 Views)