LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

conditional for loop will not read control in an event case

Solved!
Go to solution

I made a simple conditional for loop, with a timer and a random number generator in the loop as well as a stop button attached to the conditional stop  terminal.  All works well, and the loop stops when I click on the stop button. But I then envelope the conditional for loop with an event structure and create an event to run the conditional for loop.

To my surprise, when I run this modified VI I can never get the loop to stop via the button wired to the conditional stop terminal.  How is this happening? And how do I get around this?

0 Kudos
Message 1 of 6
(3,071 Views)

Who knows?  A picture is worth a thousand words, and a VI is worth even more.

 

If you attach your VI to your message, we can see what you are doing rather than trying to decode it based on your written description.

0 Kudos
Message 2 of 6
(3,067 Views)
Solution
Accepted by hounddog

edit the event case>>UNCHECK Lock Front panel until case finishes (or whatever that text actually states in the lower left corner of the edit event pop-up)

 

(~~~~~oh- Magic 8-ball~~~~~)


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 6
(3,066 Views)

OK, here is a code capture tool image of the block diagram and the front panel.

0 Kudos
Message 4 of 6
(3,044 Views)

Really-  Uncheck the radio button (And having a 100 second long event case is not really a good idea. )

BH.png


"Should be" isn't "Is" -Jay
Message 5 of 6
(3,032 Views)

Heh.. I have a program with up to a 47 hour event case! And no I didn't write it. And yes I am replacing it.

=====================
LabVIEW 2012


Message 6 of 6
(3,003 Views)