DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Import TDM in MATLAB using NI script: get C++ error

I've tried using this page:  http://digital.ni.com/public.nsf/allkb/0EEADA99DC7D00A4862572E30037C3A2  to import my TDM files into MATLAB (versions R2008a, 2008b, and 2009a) but each time I get the following error:

 

Error using ==> loadlibrary at 281

Microsoft Visual C++ 2005 or 2008 is required to use this feature.

 

Error in ==> Read_TDMData at 28

loadlibrary(NI_TDM_DLL_Path,NI_TDM_H_Path

 

I am using Windows XP 64bit and it says I have the Microsoft Visual C++ Redistributable installed in the control panel so I'm not sure if MATLAB can't find a file that is there, or if I don't have the right Visual C++ application.  Any thoughts would be greatly appreciated!

 

0 Kudos
Message 1 of 11
(9,040 Views)
Are you calling the files in 32-bit mode or 64-bit mode? 
0 Kudos
Message 2 of 11
(8,999 Views)
I'm using 64 bit mode
0 Kudos
Message 3 of 11
(8,991 Views)

..but I'm not sure if I am calling them in 64 bit mode.  Does MATLAB have different modes?  I am using a 64 bit version of Vista but I am just running MATLAB as normal (and not specifying whether I am calling in 32 or 64 bit).

 

Thanks!

0 Kudos
Message 4 of 11
(8,990 Views)

Hi nr109,

 

Can you try to use the API in a C++ program and see if you get errors?  For debugging purposes the extra layer of calling the C++ API from a MatLab script is adding considerable complexity, and that's also the hardest part for us to debug here at NI.  If you can reproduce the same sort of problems with a C++ program, then you could send that to us along with the data files, and it would be pretty simple to reproduce here and debug.  On the other hand, if the corresponding C++ program executes the code without errors, then that would point to an issue in the MatLab layer.

 

Brad Turpin
DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 5 of 11
(8,946 Views)
Is it possible to read a TDM file in Matlab using the Mac operating system?
0 Kudos
Message 6 of 11
(8,427 Views)

Hi nrl09,

 

the Matlab example you are referring to is based on the TDM-C-DLL. This package is 32bit and Windows only.

 

Stefan

0 Kudos
Message 7 of 11
(8,418 Views)

Hi!

Ich habe leider das gleiche Problem....

I have the same Problem!

 

System: Win7 64bit prof.; Matlab R2009b 64bit.

 

 


 

??? Error using ==> loadlibrary at 281
Microsoft Visual C++ 2005 or 2008 is required to use this feature.

Error in ==> ReadFile at 30
loadlibrary(NI_TDM_DLL_Path,NI_TDM_H_Path);

 


 

I use: http://zone.ni.com/devzone/cda/epd/p/id/5957

the 64bit-read-sample + 64bit-nilibddc.dll + 64bit nilibddc_m.h

 

I have install:

 

 

0 Kudos
Message 8 of 11
(7,520 Views)

Hi Jigs,

 

I would verify that you have Perl available on this machine in addition to the x64 C compiler, as suggested in the MATLAB loadlibrary help.

Best Regards,
Swathi B
0 Kudos
Message 9 of 11
(7,439 Views)

I get the exact same error as jigs on a win 7 64 bit machine when using the 64 bit files from here: http://zone.ni.com/devzone/cda/epd/p/id/5957. I have perl and microsoft visual c++ 2005 redistributable x64.
??? Error using ==> loadlibrary at 281
Microsoft Visual C++ 2005 or 2008 is required to use this feature.

Error in ==> ReadFile at 30
loadlibrary(NI_TDM_DLL_Path,NI_TDM_H_Path);

0 Kudos
Message 10 of 11
(7,120 Views)