LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading from a TDMS file

Solved!
Go to solution

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.

Download All
0 Kudos
Message 1 of 3
(4,403 Views)
Solution
Accepted by topic author anupam2016

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.

 


GCentral
Message 2 of 3
(4,380 Views)

Thank you very much for your short,crisp and to the point answer.

It worked.

0 Kudos
Message 3 of 3
(4,374 Views)