LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading TDMS files in Matlab - problems with the example code

Solved!
Go to solution

I want to use the TDMS files to store data and do offline analysis in Matlab, version 2009b (either on Mac OS10.6 or Windows XP).

 

To test the data import in Matlab I tried the example from http://digital.ni.com/public.nsf/allkb/0EEADA99DC7D00A4862572E30037C3A2 , but without success.

 

 

I tried either with and without the path definition (as explained on the page I referred to before) at the start, and got back the following errors:

 

with:

 

??? Error using ==> loadlibrary>deltempfiles at 559

nilibddc_m.i.

 

Error in ==> loadlibrary at 452

    deltempfiles(delfiles);

 

Error in ==> Read_TDMData at 7

loadlibrary([examplePath '\nilibddc'], hfile);

 

without: 

 

??? Error using ==> loadlibrary>deltempfiles at 559

nilibddc_m.i.

 

Error in ==> loadlibrary at 452

    deltempfiles(delfiles);

 

Error in ==> Read_TDMData at 36

loadlibrary(NI_TDM_DLL_Path,NI_TDM_H_Path); 

 

 

I found a few messages on the issue, dating from 2006 and 2007, that didn't lead to a satisfying solution and was hoping that, by now, there would be a solution to my problem.

 

 

Thanks a lot

 

Remco   

0 Kudos
Message 1 of 6
(3,354 Views)
0 Kudos
Message 2 of 6
(3,346 Views)

Hi Musk,

 

Thanks for your answer. 

 

Unfortunately it didn't help as my problem is not discussed there. I have a problem with this line:

 

loadlibrary(NI_TDM_DLL_Path,NI_TDM_H_Path);

 

I said before that I was using 2009b, but I was mistaken, I have R2008a, but the 'loadlibrary' is opened in a 2008b editor (no idea why). On the Mac I have 2009b installed.

 

Thanks

 

Remco 

0 Kudos
Message 3 of 6
(3,335 Views)
Solution
Accepted by topic author remcobdeg

Did you copy the nilibddc.dll to some other place?

If yes, did you copy all the content of the dev/bin folder? Including sub-folders?

0 Kudos
Message 4 of 6
(3,328 Views)

Thanks! Using the files in the original folder and manually deleting the nilibdcc_m.h file, that was created in the \...\temp directory, solved the problem. 

 

 

 

0 Kudos
Message 5 of 6
(3,306 Views)

Sorry, it was the nilibdcc_m.i file I had to delete. 

And I need to keep doing this before every run to have the code working.

 

Cheers

Remco 

0 Kudos
Message 6 of 6
(3,303 Views)