Communication between Matlab and NI DAQ USB 6229

2 visualizaciones (últimos 30 días)
Alan Armstrong
Alan Armstrong el 22 de Ag. de 2012
Hi,
I'm using Matlab R2012a and NI DAQ USB6229.
When I use the following line of code:
>> loadlibrary('nicaiu.dll','nidaqmx.h','alias','myni')
I get an error and it appears that the library did not load:
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
Error using loadlibrary (line 419)
There was an error loading the library "C:\Documents and Settings\Administrator\My Documents\PhD\MATLAB\Experiment_2\nicaiu.dll"
A dynamic link library (DLL) initialization routine failed.
Caused by:
Error using loaddefinedlibrary
A dynamic link library (DLL) initialization routine failed.
Can anybody help me with this?
thanks in advance,
Al
  1 comentario
Walter Roberson
Walter Roberson el 22 de Ag. de 2012
Are you using the 32 bit or 64 bit MATLAB? Is the dll for 32 or 64 bit?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Data Acquisition Toolbox Supported Hardware 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