By using the global and local, actually you can pass the value but it just that it is not executing the passed value.
LabVIEW will first finished executing the inner loop first then it will go to other tasks. Why you use inner and outer loop?
If you want to pass the value before it finished, my suggestion is you run your two while loops in parallel. Then you can pass the value by using local or global variable and they can execute synchronously.
------------------------------------------------------------------
When you feel sad, laugh