09-14-2011 07:52 AM
Hello,
I have a while loop which is inside a while loop which houses my enetire application, When stopping the inner while loop portions of my outer loop stop working, How do I setup the inner while stop that it will not interfeer with the outer while loop?
Thanks,
Gil,
09-14-2011 08:03 AM - edited 09-14-2011 08:03 AM
Your question is so vague as to be completely unanswerable. Please be more specific. What are your 2 loops doing? Why do you have 2? What are you using to stop the inner loop? What are you using to stop the outer loop? What "stops working"?
Please post your code and then maybe we'll have something to talk about.
09-14-2011 11:45 AM
Dunno if I understood your question, but it seems from your question you simply must not use one while loop inside another, since the inner while loop stops up what happends in the outer, and you want the outer loop stuff to happen.
Use paralellism instead - a producer/consumer structure would solve your problem.
09-14-2011 08:28 PM
It sounds like he is using a simple archetecture. But switching to a different archetecture may not be necessary. Simply because it doesn't work, doesn't mean scrap the whole thing and start over. He's got a bug and needs to fix it. Is it the best archetecture to use, absolutely not, but simple or general archetectures can be effective based on the application.
Post your VI so we can take a look and give you some pointers and suggestions for improvement.