FlexLogger

cancel
Showing results for 
Search instead for 
Did you mean: 

Flexlogger fails to close tdms file

Howdy,

 

I have flexlogger both recording data from a series of digital inputs at 50kHz as well as controlling a motor system via an analog output; both cards in a cDAQ chassis. When I only record data with the system sitting still, I am able to import the tdms files into excel and matlab without any issue. But if I utilize the motor controller, every tdms file fails to import to either matlab or excel. I have a growing suspicion that the tdms is failing to close properly or not properly writing a header. I am using TDMS_reader for matlab and I am getting both the 'catastrophic error' and the 'Unexpected lead in header' errors. When I import into excel it is a -2503 error.

 

thanks

 

 

0 Kudos
Message 1 of 8
(3,631 Views)

Hello there

 

To help us better diagnose what might be going on, would you provide us with some additional information on the version of FlexLogger you're using and if you're able to successfully open this file in DIAdem. Another thing you could try is to delete the .tdms_index file and see if that fixes the problem

 

Shruti Shirhatti

National Instruments

0 Kudos
Message 2 of 8
(3,554 Views)

FlexLogger 2019 R3 Build 7.0.0.50221

I am able to open the tdms in DIAdem

Removing the _index file still leads to an "Unexpected lead in header" in matlab from https://www.mathworks.com/matlabcentral/fileexchange/30023-tdms-reader

0 Kudos
Message 3 of 8
(3,544 Views)

Thanks for that information. Was import into Excel successful when you removed the _index file or did that fail as well?

0 Kudos
Message 4 of 8
(3,538 Views)

It was not, when I import to excel i get the following error in the log file:

 

***************** New logfile section *******************
TDMS: ERROR: TDS Exception in Initialize: Tds Error: TdsErrNotTdsFile(-2503):

 

 

0 Kudos
Message 5 of 8
(3,534 Views)

Now after deleting the _index file, DIAdem is no longer able to open the tdms file. Same error as listed above for the excel import

0 Kudos
Message 6 of 8
(3,532 Views)

We are trying to reproduce the issue on our end. A few more things that could help us would be any additional information on what your logging configuration looks like in FlexLogger, and also the version of the TDM Excel Add-In you are using

0 Kudos
Message 7 of 8
(3,513 Views)

Would you also be able to describe your exact workflow for how you import your file? A few examples of different workflows in Excel would be 

  • Launch Excel, Create a new empty file in Excel, then use the TDMS file importer in Excel via Add-Ins > Import TDM File
  • Launch Excel, open the TDMS file via File > Open (file filter set to "Any Files")

If its possible to send us the corrupted file you're trying to import, that would be very helpful too

 

0 Kudos
Message 8 of 8
(3,494 Views)