05-01-2009 09:14 AM
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!
05-05-2009 09:44 AM
05-05-2009 03:20 PM
05-05-2009 03:22 PM
..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!
05-07-2009 01:24 PM
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
10-27-2009 12:02 PM
10-28-2009 02:13 AM
Hi nrl09,
the Matlab example you are referring to is based on the TDM-C-DLL. This package is 32bit and Windows only.
Stefan
07-02-2010 10:00 AM
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:
07-07-2010 04:43 PM
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.
08-13-2010 03:58 PM
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);