10-27-2005 03:44 AM
10-27-2005 11:27 AM
01-19-2006 07:41 AM
Hi Dr Zhdanov,
Thank you for posting on the NI discussion forums.
I have recently picked up your thread, and I believe I know what the issue is. Essentially the Read LVM File VI is attempting to read the file on every iteration of the loop. This operation is fine, until it hits the end of the file and there is no more data available for the VI to retrieve. This is why the error is being presented to you.
Essentially, there is a way to get around this by utilising the EoF (End of File) output from the Read LVM File VI. This output becomes TRUE when the VI reaches the last datapoint in the file. By feeding this value to the next while loop iteration (via shift register, or feedback node), you can then disable that VI until you need to read a different file.
To demonstrate this architecture I have created a small example VI for you.
I hope this helps. All the best,