Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

use loadlibrary with matlab

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


0 Kudos
Message 1 of 3
(3,622 Views)

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.

0 Kudos
Message 2 of 3
(3,572 Views)

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.

0 Kudos
Message 3 of 3
(3,571 Views)