I want to stop a while loop that runs in a sub-vi. It does not work with a local variable, is there a possibility to implement this without using global variables?
There are many different ways of doing this. you could use notifiers or ques or just simply pass a reference to a stop button and use a property node to control a loop. I would suggest looking at the many examples that ship with labview for a demostration of each.