Solution
If your file is not read during the first run of the application, and it's only read correctly in subsequent executions, it's possible that you are reading the file outside your RT main loop, and that this is behavior related to a known issue that occurs both on NI Linux RT and VxWorks targets.
The current workaround to this known issue is to put the
Read from text.vi within a
While loop and give the program a set of number of iterations to attempt to read the file successfully.
An example of this approach is shown in the LabVIEW snippet below.
Adjust the range of iterations as necessary until your file is read in your RT application's first run.To use this LabVIEW snippet, simply download the above image, and drag and drop it into your LabVIEW Block Diagram.