(I have not investigated why it acts as observed, but there is an easy solution.)
A workaround would be to just prepend a file dialog and uncheck "Ask User to choose file" in the express panel (See attached VI).
Btw, you should
really put a wait in that loop, your loop runs at maximum speed, gobbling up all CPU. Alternatively, an event structure seems more appropriate as in my suggestion.