Well, the thing is that the first outermost while-loop, runs for every scan I need to make (for each time I make a new xy-graph), and the second inner while-loop runs for every meaurement done (every xy-point in the graph).
My problem is I want to be able to stop this inner while-loop, if I see that I have put the wrong parameters into the program. I don't want to wait until it is done with its measurements (some times the inner loop has to run 200 times or more per scan).
The SubVI which contains these two while-loops already contains a stop, button which does this, but I want to acces this stop button from the mainVI, as I stated earlier.