You won't be able to pass data out of the while loop through a tunnel when it is running. However, another option would be to use local variables. If you only want the data passed out under certain conditions, you could put the local variable(s) in a case structure.