Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Matlab error for loading 'NIDAQmx.h' in its library

Hi,

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 Kudos
Message 1 of 2
(4,687 Views)

Lissa,

 

Could you please refrain from double posting on the forums it makes posting the information more difficult. I'll post any responses I have to the other forum since this is a general DAQmx question not just digital IO.

 

http://forums.ni.com/t5/Multifunction-DAQ/Matlab-error-for-loading-NIDAQmx-h-in-its-library/m-p/2047...

 

Kyle Hartley
Senior Embedded Software Engineer

0 Kudos
Message 2 of 2
(4,674 Views)