-6211 DDC_StorageCouldNotBeOpened
3 views (last 30 days)
Show older comments
I am using TDM C DLL (nilibddc.dll and nilibddc_m.h) provided by 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 when using 'DDC_OpenFileEx' in 'calllib'. 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?
0 Comments
Answers (1)
Jeremy
on 28 Sep 2015
I am actually running into a very similar issue. I have some TDMS files that can be opened, some others (usually longer files) cannot be opened. I get the same -6211 error when I try to call DDC_OpenFileEx. I haven't been able to nail down any specific feature of the files that causes this. Both files have some timestep channels, some waveforms and about the same metadata.
I have also determined that this issue is specific to 64-bit Matlab. I used a 32-bit version of Matlab and the error did NOT occur. I also had someone compile a simple C program to open the files using the DLL and it opened all the files fine, in 32 and 64-bit form.
I have determined that for my files a defrag operation resolves the issue. This can be done in Labview or Diadem. I even made a 32-bit matlab fuction to read all the channel and metadata and copy to a new file; that also resolves the issue.
I have an open ticket with NI on this, I'll let you know if I ever get anywhere.
0 Comments
See Also
Categories
Find more on Data Import and Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!