05-15-2008 07:20 AM
Halemani wrote:
you! My problem is that only. How do you stop the outer most loop?
05-15-2008 07:22 AM
Yeah, but in my case. There will be totally there will be 3 start, 3 stop and 1 program stop button. Then....yeah maybe I will try that.
@JoeLabView wrote:
Of course it will work. The stop button then becomes a Stop Program button. You can do one, two, three operatins, repeat them, etc until you press the stop (program) button. You'd have 1 stop button and as many operations button as you need (three in this case). And 1 single loop that is easily controlled.The Event Structure is quite easy to implement. And much cleaner solution.RayR
05-15-2008 07:25 AM
I forgot to ask which version of LV are you using? Because Event Structures are not part of the basic package 😞
Also, I am curious, why do you need 3 start & 3 stop buttons? Does it not stop automatically after doing what it has to do? Can you elaborate?
RayR
05-15-2008 07:25 AM - edited 05-15-2008 07:25 AM
05-15-2008 07:31 AM - edited 05-15-2008 07:32 AM
Ok, I have three charts I am sending my data. Then I will choose which chart to start showing data. Then I will choose to stop or start the other charts. Hence, 6 buttons for three charts(2 for each, start and stop). Then after I get bored I choose to stop the program.
@JoeLabView wrote:
I forgot to ask which version of LV are you using? Because Event Structures are not part of the basic package 😞
Also, I am curious, why do you need 3 start & 3 stop buttons? Does it not stop automatically after doing what it has to do? Can you elaborate?
RayR
05-15-2008 07:38 AM
05-15-2008 07:43 AM - edited 05-15-2008 07:44 AM
Glad you like it and thanks Mike for providing a vi. No labview installed on my PC 😞
Try to adopt that structure... It will help you code more efficiently in the future. 😉
RayR
05-15-2008 08:00 AM
Back to the original code
"Stop 4" is probably being read before the other loops run. If you put the "stop 4" button in a seq frame that is only executed afte the other three loops terminate, the button will be read AFTER the inner loops terminate.
Ben
05-15-2008 08:12 AM
05-15-2008 08:18 AM
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.
However, I prefere the event structure method.
Mike