How to solve Matlab error for loading 'NIDAQmx.h' in its library?
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!