LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Count a bool-event (start-stop)

What do you mean with "out of the loop"?

 

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 21 of 25
(467 Views)
I send you the vi. There is the "stop" in the loop, but I've to put this vi into another vi and there exists the "stop" which I have to use. And so the Stop has to be outside the loop. 
0 Kudos
Message 22 of 25
(466 Views)

There are various ways to do this.

You can use global variables which are written outside your counter and there just only read. In this case you have to be make sure that you always read the correct value.

Another way is to wire a reference to the counter, if you use a control to stop it. So you can read the value of the control from within your counter.

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 23 of 25
(463 Views)
PLEASE send me a picture of the vi how you mean this.
0 Kudos
Message 24 of 25
(455 Views)
If you tried it - could you post your code? Or could you explain how you tried it?
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 25 of 25
(451 Views)