DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting "... file has and invalid format. (Error no. 11)" when importing .tdms file into DIAdem 11

Solved!
Go to solution

I developed a script for processing .tdms files in DIAdem 11.1, now I'm deploying the script on the very PXI system that created the .tdms files.  This system had DIAdem 11.0, but when I try to open (DataFileLoadSel) the tdms file in my script I get the error message:

 

"D:\MyFileName.tdms" has an invalid fiel format.  (Error no. 11)

 

The tdms files are created by a LabView application.

 

If I delete the correspondin .tdms index file, I get a little further, it loads the first two of four groups, using DataFileLoadSel on the first group, and DataFileLoadRed on the 2nd group, on third group, another DataFileLoadRed, I get the following error:

 

Error in <MyScript> (Line: x, Column: y):

Cannot load the file "D:\MyFileName.tdms" with the loader "TDMS"

Further information:

Cannot open the file "D:\MyFileName.tdms".

 

Is there a difference between DIAdem 11.0 and 11.1 that affects the import of .tdms files, if so, can I get around it?

 

Thanks,

Eric

0 Kudos
Message 1 of 5
(5,768 Views)
Solution
Accepted by topic author eberg

Hello eberg,

 

Before we go into more detailed error trapping, could you please try to install the TDMS 2.0 format on the DIAdem 11.0 computer (DIAdem 11.1 and LabVIEW 2009 come with the TDMS 2.0 stuff already installed).

 

Please get the download here: http://zone.ni.com/devzone/cda/tut/p/id/9995

 

Once installed, please try running the Scripts again (in DIAdem 11.0) and let us know if that fixed the issue. It might not help to install this, but it's a quick thing to try before we dig deeper into the issue.

 

Best regards,

 

      Otmar

Otmar D. Foehner
0 Kudos
Message 2 of 5
(5,761 Views)
Is it possible to post one of the files and a little script showing the effect?
0 Kudos
Message 3 of 5
(5,743 Views)

Otmar,

 

TDMS 2.0 took care of the import issue, thanks.

 

Now I've got to deal with unsupported commmands in 11.0, apparently "Data.GetChannels" is not supported in 11.0, but now that I got the import working I can step throught he balance of the script and work these things out.

 

Thanks for the tip,

Eric

0 Kudos
Message 4 of 5
(5,736 Views)

The files are too big (~ 8 GB).  I got the basis for the script from NI, and it simply uses DataFileLoadRed to read in selected rows of the source file, and then saving these rows back to a smaller tdms file, i.e., I'm breaking the source file into smaller chuncks.  The root cause of my issue is that the tdms source files are written by LabView 2009, hence in TDMS 2.0 format - I learn something new every day.

 

Eric

0 Kudos
Message 5 of 5
(5,734 Views)