LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 4 when reading TDMS file block-wise

Solved!
Go to solution

I try to read data from TDMS file in portions (blocks). Seems TDMS Read Function has corresponding inputs. However, only first block is read. Attempt to read second block launches error 4 “End of file encountered”.

This is simple code reproducing the error. The VI and TDMS file are attached. The file has I16 data format and contains 1024 data points.

 

TDMSreadBug201004-1.png

 

What is wrong?

Thank you

_____________________________________
www.azinterface.net - Interface-based multiple inheritance for LabVIEW OOP
0 Kudos
Message 1 of 3
(2,011 Views)
Solution
Accepted by topic author _Y_

You need to wire in your group and channel name to your read function, just like you did for your Get Properties function.

Message 2 of 3
(1,988 Views)

Yes, it works now. So simple.

 

I wonder why first block is read even without channel and group names?

_____________________________________
www.azinterface.net - Interface-based multiple inheritance for LabVIEW OOP
Message 3 of 3
(1,968 Views)