11-30-2009 04:25 AM
Hi,
I'm trying to use the NI-daqmx tools for Matlab for controlling the NI USB 6259 BNC device, but when I call the functions, for example:
[timed_out]=GenNUpdates('dev1/ao1', -10, 10, 1, [1 2 3], 10)
I get the following error in the Matlab window:
Warning: LabVIEW MEX-File Error - Parameter 1: Failed to load some MEX-function DLLs installed by The
MathWorks, Inc. MATLAB(R). These DLLs include libmx.dll and libmex.dll. They should be installed when
MATLAB(R) is installed. Make sure they are in the system's path.
??? One or more output arguments not assigned during call to "GenNUpdates_nonUI".
Error in ==> GenNUpdates at 101
[code, source, status] = GenNUpdates_nonUI(Physical_Channel, Minimum_Value, Maximum_Value, Frequency, Values,
Timeout);
I have Windows XP on my computer and I'm using the R2009b Matlab version. I checked the "libmx.dll" and "libmex.dll"files and they are present both in the system path and in Matlab's path.
The same functions are working perfectly on another computer with the version R2007b of Matlab, and also I noticed that the device works without problems when I use the Measurement&Automation software.
Could this be only a compatibility problem related to the Matlab different versions? Do I have to install the Data Acquisition Toolbox on my Mablab version in order to be able to use these tools?f
Regards
Martin
12-02-2009 07:13 AM
Hi Martin,
NI-DAQmx tool (https://lumen.ni.com/nicif/us/evaldaqtools/content.xhtml) has been tested with versions 13 and 14 of The Mathworks, Inc. MATLAB® software.
You can follow these documents in order to work with Matlab and NI-DAQmx:
http://zone.ni.com/devzone/cda/tut/p/id/3005
http://forums.ni.com/ni/board/message?board.id=250&requireLogin=False&thread.id=10165
Regards