03-09-2017 09:00 PM
Hello,
I am trying to read dynamic data from a TDMS file which is for about 40second.
I have tried to make the VI (attached).
When I try to run it , it is giving me error.
Error 4 occurred at Read From Measurement File->Untitled 4
Possible reason(s):
LabVIEW: End of file encountered.
Can someone help me on what may be wrong ?
Thanks.
Solved! Go to Solution.
03-09-2017 10:37 PM - edited 03-09-2017 10:38 PM
Firstly, you don't need a loop.
Secondly, you have ~8000 data points, so to display all of them you'll need to increase the chart history length. I think it defaults to 5000 points. To do this, right click on your graph (on the front panel)
The only remaining problem then is that not all of your graph is visible! Changing the left hand side of the x-axis to 0, or setting the x-axis to autoscale (right click the axis) should display all of your data.
Edit: Sorry - to answer your actual question, the file end is reached but you don't check the 'EOF?' output from the express VI, so the loop keeps looking for more data - you can't press the stop button quickly enough! Wiring the 'EOF?' output to the loop stop terminal would prevent this, but the loop will only iterate once, so you don't need it here.
03-09-2017 10:53 PM
Thank you very much for your short,crisp and to the point answer.
It worked.