Borrar filtros
Borrar filtros

How to solve Matlab error for loading 'NIDAQmx.h' in its library?

3 visualizaciones (últimos 30 días)
lissa  Anderson
lissa Anderson el 28 de Jun. de 2012
Hi,
To program my National Instrument card, when I want to load 'NIDAQmx.h' in matlabusing this command loadlibrary('nicaiu.dll','NIDAQmx.h','alias','myni')
I encounter the following Warning and Error:
Warning: Warnings messages were produced while parsing. Check the functions you intend to use for
correctness. Warning text can be viewed using:
[notfound,warnings]=loadlibrary(...)
> In loadlibrary at 344
Warning: The data type 'error' used by function DAQmxGetTaskAttribute does not exist.
> In loadlibrary at 403
Warning: The data type 'FcnPtr' used by function DAQmxRegisterEveryNSamplesEvent does not exist.
I have put both 'nicaiu.dll' and 'NIDAQmx.h' in the same folder that I am running my m-file. And I have added it to my Matlab path. I also have downloaded Windows SDK 7.1 for compiling Mex files and Perl software as is mentioned in the "loadlibrary" function help of Matlab. All the matlab Help examples for "loadlibrary" are working good without any warning. But I am stuck with loading NIDAQmx. I am stucked with this.
PS: I am using a R2012a 32 bit matlab on a 32 bit Windows 7 OS.
I would be really appreciative if you guys can help me in this.

Respuestas (0)

Categorías

Más información sobre C Shared Library Integration en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by