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

1 view (last 30 days)
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.

Answers (0)

Categories

Find more on C Shared Library Integration in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!