LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Crazy while loop?

Mike posted

Exactly! Smiley Happy

Ben



Message Edited by Ben on 05-15-2008 08:33 AM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 21 of 29
(1,116 Views)
Take a look at this one with an event structure.  It might be easier to follow.  It should be in LV 8.0
Randall Pursley
0 Kudos
Message 22 of 29
(1,110 Views)

Thanks Ben for the explanation. 🙂

I didn't want to "bark up that tree"..  because it is not how you would want a program to operate.  Click this before that.. If it's sunny, click this other button, when it rains, you gatta click twice..  ... you know where I'm headed with that.. 😉

I figured, "let's get it right from the start" instead of spending time on what's wrong and how to make a wrong work..  That would also be wrong 😮

LOL!  🙂

I agree... if you create a rendez-vous point (using french and not the Rendez-Vous available in Synchronization from Labview) to force the completion of all loops BEFORE reading the overall Stop button, then yeah... it'll work..  Make sure you use Latching version of the button..  Although... after the three loops are done, you could press the stop button again..

<Wish I could say it's time for coffee..  oh well herbal tea will do and I'll carry-on with my madness > 😄



Message Edited by JoeLabView on 05-15-2008 09:48 AM
0 Kudos
Message 23 of 29
(1,107 Views)

"I didn't want to "bark up that tree"..  "

I understand. I just wanted to address the un-answered question about "why".

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 24 of 29
(1,100 Views)
Hey Randall. Thanks it also works. But I need start and stop buttons for all three loops or cases. Although I have got the idea. Thanks anyway. Cheers...Smiley Very Happy
----------------------------------------------------------------------------------
I have still not got what I love.....
0 Kudos
Message 25 of 29
(1,060 Views)


@MikeS81 wrote:

Hi Halemani,

your are wrong in this point and Ben is right.
If you press the "stop4" button before you stop the last loop, it will work.
See the attached example. Smiley Happy However, I prefere the event structure method.

Mike



No, Mike it did not work(stop the outer most loop). Although we can stop the outer most loop by giving 'true' in the false case in the case structures. But then only one innner loop can be ON and others have have to wait untill it is stopped and then they  have to be started. So it won't work according to the desingn requirments.Smiley Happy


Message Edited by Halemani on 05-16-2008 12:41 AM
----------------------------------------------------------------------------------
I have still not got what I love.....
0 Kudos
Message 26 of 29
(1,060 Views)


@Ben wrote:

"I didn't want to "bark up that tree"..  "

I understand. I just wanted to address the un-answered question about "why".

Ben



Yeah Ben, "Why" is answered.Smiley Very Happy
----------------------------------------------------------------------------------
I have still not got what I love.....
0 Kudos
Message 27 of 29
(1,054 Views)


Halemani wrote:
No, Mike it did not work(stop the outer most loop). Although we can stop the outer most loop by giving 'true' in the false case in the case structures. But then only one innner loop can be ON and others have have to wait untill it is stopped and then they  have to be started. So it won't work according to the desingn requirments.Smiley Happy

Halemani,
 
Did you try the Event Structure?  If not, why are you sticking to the three inner loop version?
 
Did I forget to mention that using an Event Structure will save you lots of headaches?  😉
 
RayR
0 Kudos
Message 28 of 29
(1,040 Views)
Turning the switch on and off does start and stop.  What need would you have for two buttons to do the job of one.  But here is one that will work.
Randall Pursley
0 Kudos
Message 29 of 29
(1,024 Views)