10-07-2009 10:22 AM
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
Solved! Go to Solution.
10-07-2009 01:55 PM
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
10-08-2009 04:32 AM
10-08-2009 06:50 AM
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
10-08-2009 06:57 AM
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