09-08-2011 06:11 AM
Hi, I've downloaded software NIDAQmx and I want call the functions with Matlab.
I've done the next:
loadlibrary('NIDAQmx.lib','NIDAQmx.h')
Warning: Warnings messages were produced while parsing. Check the functions youintend to use for correctness. Warning text can be viewed using:[notfound,warnings]=loadlibrary(...)
> In loadlibrary at 394??? Error using ==> loadlibrary at 474There was an error loading the library "C:\Archivos de programa\National Instruments\NI-DAQ\DAQmxANSI C Dev\include\NIDAQmx.lib"C:\Archivos de programa\National Instruments\NI-DAQ\DAQmx ANSI C Dev\include\NIDAQmx.lib no es unaaplicación Win32 válida.
Caused by: Error using ==> loaddefinedlibrary C:\Archivos de programa\National Instruments\NI-DAQ\DAQmx ANSI C Dev\include\NIDAQmx.lib no es una aplicación Win32 válida.
I think that the problem is that I haven't a .dll file, only I have a .lib one. Can somebody help me with my problem? Anybody known if exist another method to use Nidaqmx's function from Matlab (moreover Toolbox Data Acquisition).
Thanks
09-19-2011
06:06 AM
- last edited on
06-27-2024
03:31 PM
by
Content Cleaner
Hello ManoloAS I think this is more a MathWorks issue, but following links can help you to fix this problem: http://forums.ni.com/t5/Multifunction-DAQ/Use-M-Series-cards-with-DAQmx-in-Matlab/m-p/185232 http://www.jr-worldwi.de/work/matlab/ http://www.codeproject.com/KB/DLL/MatlabGenericDll.aspx In short, it looks like you must call the dynamic library instead of the static.
09-19-2011
06:08 AM
- last edited on
06-27-2024
03:31 PM
by
Content Cleaner
Hello ManoloAS
I think this is more a MathWorks issue, but following links can help you to fix this problem:
http://forums.ni.com/t5/Multifunction-DAQ/Use-M-Series-cards-with-DAQmx-in-Matlab/m-p/185232
http://www.jr-worldwi.de/work/matlab/
http://www.codeproject.com/KB/DLL/MatlabGenericDll.aspx
In short, it looks like you must call the dynamic library instead of the static.