I´m using Labview 2010 for logging some CAN and GPIB data.
By testing and logging for view minutes everything works fine.
By logging overnight and creating a 180 MB TDMS file (CAN Msg every 100 msec, GPIB every 10 sec)
I can´t open the file anymore and find a file with the following content:
ERROR: TDS Exception in Initialize: Tds Error: TdsErrNotTdsFile(-2503):
Where could I find some informations about this error?
Firstly, maybe you can try to delete the .tdms_index file and see whether it can work or not.
Secondly, there's a latest TDMS component on ni.com which maybe you can try with:
I have got the same problem as you. Did you ever find a solution in the meantime?
Well, it's a little bit complicated. The error code -2503 is always happened when the TDMS file is corrupted. I have the below 2 questions:
1) Do you have this error returned for each of your TDMS file? Or do you have an code to generate such file?
2) Is that convenient for you to post your file (if the main file is too large, maybe the .tdms_index file is also OK), and we can do more investigation.
I've got the same mistake, too. Because last posting is month ago: Do you have a solution already?
What I found out by using an Hex-Editor to compare a working tdms-index file with a corrupted one is, that at the end of the corrupted tdms-index-file the channel names have not been written. I'm not used in working with Hex-Editors but I tried to copy the missing part. That didn't work. As I told before, I am not in with Hex-Editors. For me it seems like the file hasn't been closed correctly. I generate those files by code with LabView 2010. Short measurements are ok, only the long ones but here all (mine are about 150 MB) are corrupt.
I attached one bad and a good one for you. Hope that will help.
excuse. The problem seems to be solved in LabView 2011. I can open the files in Diadem 2011, too. There's a lot of cross posting. I didn't realize that immediately.
I have the same problem using LabVIEW 2014.
Some of the TDMS files gives error:
USI encountered an exception:
TDS Exception in Initialize: Tds Error> TdsErrNotTdsFile(-2503):
and after that
(208): Error while loading model <filename readonly:'yes'> filename path </filename> (TDMS), code: 80
The logfile contains the following;
***************** New logfile section *******************
ToRootData.cpp(212): TDMS: ERROR: TDS Exception in Initialize: Tds Error: TdsErrNotTdsFile(-2503):
Did you solved the error?
I have the same problem using LabVIEW 2016.
Did you solved the error?
not really, just saved data more frequently. After some files just put it together at once.
Please excuse this cross-board reply, but I thought I'd add my experience, from the LabWindows (CVI) side.
I'm seeing this issue too with my CVI application only occasionally. The error returned by the function TDMS_OpenFileEx is:
Description: The file is not a valid TDMS file.
The TDMS file that was created has size, it's not empty. When I try to import into Excel with the importer, I get the error codes posted above.