LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Count a bool-event (start-stop)

Here is the vi...
 
Thanks!!!!!!!
0 Kudos
Message 11 of 25
(936 Views)

Hi Claudia

Now again - as Novatron mentioned you have to change the loop condition. Now you have it "continue while true" which is why it is stopped immediately - the stop button is false. Change it to "stop if true" as you can see on the picture. Just right click on the condition and change it.

And then it should work - on my pc it worked after this modification.

Hope this helps.

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 12 of 25
(932 Views)

I know, but this options aren't there by me. Is it possible, that Labview 5.1 doesn't have this opportunity?

Or do you know why I can't see it?????

0 Kudos
Message 13 of 25
(928 Views)
Maybe LV5.1 doesn't have it. So the easiest thing you can do is to insert a logical "not" which you should find on the boolean palette.
 
In this case the false-value of the button will change to true which matches the condition to loop on.
 
Hope this helps.
 
Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 14 of 25
(926 Views)

Do you mean it this way?

this way it only change between 0 and 1 again.

0 Kudos
Message 15 of 25
(924 Views)
Yes that's it.
But it works without any problem.
If you push switch (off -> on) the counter is increased. If you push it again (on -> off) nothing happens. Now it starts again (off -> on = +1, on-> off = nothing).
Just push switch several times.

Message Edited by becktho on 07-07-2005 11:50 AM

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 16 of 25
(925 Views)

It works!!!!!!!!! Thank you so much!!!!!!

Is there a opportunity to count all the events in an other counter and when you open the next time this programm somewhere this counter carry on with the last value.

0 Kudos
Message 17 of 25
(920 Views)

You can use this vi as a sub-vi an pass the last value of the counter (just wire an indicator to the right shift register). The initial value of the left shift register should be replace with a control. So you can start the counter with another value.

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 18 of 25
(917 Views)
I just started reading this thread.  The option to choose between the Continue While True and Stop When True in a while loop is not available in LV 5.1.  If you click on the continue icon, nothing will happen.  This option was introduced in LV6.  LV5.1 users have to invert the boolean wired to the continue terminal to stop the loop when true.  Sorry I didn't respond to this earlier, much too busy at work nowadays.
- tbob

Inventor of the WORM Global
0 Kudos
Message 19 of 25
(905 Views)

Hi again!

Is there any change to do the "stop" out of the loop?

Thank you!

0 Kudos
Message 20 of 25
(886 Views)