05-04-2009 10:50 AM
Hi I am using 4 Elapsed Time VI's to start time counting when the boolean input is true. When I run the VI the output does not start counting at the previous value. For example:
compartment 4 counts for 10 seconds when the input is 'true' for 10 seconds. When the input is 'false' for 5 seconds after that the indicator remains at 10s. That is okay, but when the boolean value becomes 'true' after this total 15 seconds the indicator becomes 16s. It should start counting at 10s because that was the last moment at which the input was true. I am using Labview 8.5
Thanks for the assistance
05-04-2009 11:21 AM
You have some very basic misconceptions about the way LabVIEW works. The elapsed time VI keeps time if it is in the dataflow or not. If you want a different functionality, you need to "reset" whenevert the boolean goes FALSE-TRUE.
Also:
05-04-2009 02:28 PM
OK, here's a quick draft how you could do it. Since you apparently want milliseconds, we can use the tick count. Since we deal with four parallel but similar code fragments, we can use a single array with four elements instead.
See if it makes sense to you. 🙂
(A lot of things don't make a lot of sense in your code, for example why do you call the indicators ms timer values if the display is actually in seconds? Why do you need four instances of basically the same code fragment? Why is timer 3 indicator near compartment 4 and vice versa? )