11-11-2010 08:18 PM - edited 11-11-2010 08:26 PM
I'm using an Ni-Usb 6501 device for digital input and output.
I'm using matlab version 2010b
I'm trying to access the device using the ni-daqmx tools for matlab, rather than the data accquisition toolbox that matlab provides. This is mostly to find out if it is any better, but also I might switch to 64 bit windows, and i know matlab's toolbox doesn't not work on that system.
here is the current issue.
I have installed everything.
I was able to successfully access the device using the ReadDigitalChannel_UI and ReadDigitalPort_UI functions.
however, this is not very useful as I want to continuously read the channels from matlab code.
when I tried the non-UI version of the functions
ReadDigitalChannel('dev1/port1/line1') I get this error in matlab:
??? One or more output arguments not assigned during call to "ReadDigitalChannel_nonUI".
Error in ==> ReadDigitalChannel at 39
[Hexadecimal_Data_Read_Dec, code, source, status] = ReadDigitalChannel_nonUI(Lines);
if I directly try the function that generated the error, ReadDigitalChannel_nonUI('dev1/port1/line1'), I get this error:
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.
i have checked, and they are in the system path.
I do not have labview. would that be the problem?
anyone with an answer? I notice this toolbox is pretty old. is Ni making any updates to it?
and, if i get this to work, any suggestion on how to continuously monitor the device without using matlab timers?
-a