-6211 DDC_Storag​eCouldNotB​eOpened

3 ビュー (過去 30 日間)
Francois Jeanneret
Francois Jeanneret 2015 年 9 月 15 日
回答済み: Jeremy 2015 年 9 月 28 日
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?

回答 (1 件)

Jeremy
Jeremy 2015 年 9 月 28 日
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.

カテゴリ

Help Center および File ExchangeData Import and Analysis についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by