03-16-2009 12:44 PM
Hello,
I am using a signal that i generated form the task.
I put my block in a "while" loop. I can control the stop condition from a command inside the loop.
Is there anyway that i can control (start/stop)the loop with a condition outside of the loop.
Thanks for the help it is appreciated.
Franck
03-16-2009 12:52 PM
It depends on what you have outside of your loop. If you have a parallel while loop outside of that while loop you can put a boolean in there that is wired to a local variable, which is then passed into your primary loop to stop it.
What is the need for stopping the while loop outside of the loop as opposed to inside the loop?
03-16-2009 01:04 PM
03-16-2009 04:35 PM
03-22-2009 08:18 PM
Thanks for the help.
I must be missing something but i cannot make it work.
Attached is what i have done !
Thanks
03-22-2009 09:19 PM - edited 03-22-2009 09:20 PM
Where is your part of the code that is running outside of this while loop? Where are you generating the notification?
Do you know that the boolean control you have only gets read once right at the beginning of the program? The you loop pauses and waits on a notification that never occurs.
I suggest you open up the exampler finder and look at the examples for notifiers. I would recommend you learn more about LabVIEW from here. How to Learn LV