As others said, the problem is not the global.
See attached a picture of how to do what you want. Since the Format String is unknown at edit time, you must provide the types to all inputs that are not DBL.
From your example, the while loop has been coded exactly like a for loop. It can be replaced with a for loop with auto-indexing, unless you really want the local variable to be update at each iteration every 50 ms. This delay is not necessary unless the computed array is huge and you want to leave some CPU time to other code in your application. Even then you can enter a delay of 0ms to force to swap to other tasks.
I don't know what your INT>BOOL VI does but using Scan from String you can read a number directly into a boolean. The number i
s rounded to an unsigned integer and 0 is False and >0 is True.
For example you scan a string for a boolean with format string %d.
"0" --> False
"24" --> True
"-18" -- False (coerced to unsigned = 0)
You scan a string for a boolean with format string %f:
Negative number up to "0.5" --> False (coerced and rounded to 0)
Number greater that 0.5 --> True