From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-15-2015 02:57 AM
I am using TDM C DLL (nilibddc.dll and nilibddc_m.h) provided bi NI to read TDMS file from Matlab. I have been able to read simple files, with short properties (headers), one channel group and up to 360 channels (2100 long each). Lately, the data files have changed, especially some variables like encoders and time stamps have been added in the channels properties. Since then I can't even open the files. I got the error: '-6211 DDC_StorageCouldNotBeOpened The storage could not be opened' from the DIAdem Connectivity Library. I also got the following message in the log file: 'TDS Exception in Initialize: Tds Error: TdsErrDataTypeMismatch(-2515)'.
Any idea where the problem comes from?
Solved! Go to Solution.
09-15-2015 05:52 AM
Actually I would assume there is a problem with the file itself.
Would it be possible to post one of the files?
Andreas
09-15-2015 06:10 PM
I just experienced the same issue and figured the solution.
You will need to use DIAdem to open the file, don't do anything, just save it. Then run the matlab code, this works for me.
However, I don't understand what happened while I saved the file.
09-15-2015 08:28 PM
Hi Andreas, Please find attached two of the files. The first one (20150904) is a previous version (simpler) that I was able to open and read and the second one (20150913) is the one I mentioned above (I couldn't open).
09-16-2015 01:56 AM - last edited on 02-26-2024 03:01 PM by migration-bot
Tank you for posting the files. Actually I am not capable to see the error at my place.
The error you describe is one that occures on opening the file.
I used the current ddc lib including
tdms_ebd.dll with version 2.0.1287.649
could you please make sure this is also included in your package.
Which operating system and ddc bitness do you use?
I have attached example c code including the resulting exe that I used to check.
Put the exe in the folder that also contains tdms_ebd.dll and the others and drop
your file on the exe with mouse. In my case it dumps the content of the file.
P.S.: If the file is loaded and saved by DIAdem a lot of things will happen including defragmentation. DIAdem will always write a new version of your file.
09-16-2015 02:29 AM
Thank you Andreas,
I am on Windows 7 64-bit using Matlab R2015a 64-bit.
I have tdms_ebd.dll with version 2.0.1287.649 in my package.
I am not the one using DIAdem to create the files. I don't have DIAdem on my computer. I can't try changing parameters...
Sorry, I couldn't find any exe in your zip file.
09-16-2015 03:22 AM
Thank you for sharing the information.
I checked with the 64bit version of the ddc lib and was ablte to reproduce your issue.
The 32bit version would work properly. Iam checking why this shows up.
09-16-2015 03:55 AM
I can't use the 32-bit ddc lib on a 64-bit windows, can I?
09-16-2015 04:06 AM
You can use it on win64 but you need to switch to 32bit Matlab to use the 32bit ddc version.
09-16-2015 04:10 AM
I don't have matlab version 32bit. Are you still looking for an explanation about the 64bit issue? That's my only solution, I am afraid.