02-07-2023 08:17 AM
@Wavicle wrote:
Hi,
When I push the button the first loop stops but the images one continues executing.
I tried to connect the wire to the stop loop but the result is the same.
Maybe this helps, one thing that I tried was to put an indicator after the read of the channel wire and it is always off
Thanks
The only possible reason that the loop does not stop is if the output from the vision acquisition is false:
Have you checked? Have you run the code with the lamp on or step by step?
I have taken your code and stripped it down and it works. Again: something else is wrong. The output from the channel is TRUE when you stop the upper loop. I don't believe that it is always false. Can you place a conditional probe that stops when true and see what happens? Maybe there is an error in the vision acquisition that makes the loop go so fast you don't see when it turns to true. Create an indicator on the i-terminal in the loop. Maybe the shutdown after the upper loop causes an error in the lower loop (I don't have those VIs and have not worked with them before).
02-07-2023 09:14 AM
Hi
I used what Bob_Schor said and now it works, maybe the reason it was not working was because I was using stream channels instead of tag channels.
Thank you all for your responses