06-26-2006 10:41 AM
06-26-2006 11:29 AM
06-26-2006 03:47 PM
06-26-2006 03:49 PM
Hi Scott-
Actually, I have heard from several users that the most recent version of Matlab's DAQ Toolbox does in fact support NI-DAQmx. Again, to verify this I would check with The Mathworks.
Thanks-
08-07-2006 12:25 PM
08-23-2006 04:51 AM
08-25-2006 06:35 PM
Hi all,
Following worked for me : enjoy!
Summary
National Instruments USB-9215A not supported
Description
When I attempt to use analoginput with my National Instruments USB-9215A, I
get an error, even though the device is listed as supported:
AI = analoginput('nidaq','Dev1');
??? Error using ==> analoginput.analoginput
Error using ==>
analoginput.analoginput>localCreateAnalogInputObject
This device is not recognized by the toolbox. However, many times,
support for new hardware can be added. Visit The Mathworks web site and
search on the name of your device for more information.
Workaround
To work around this issue, perform these steps to add support for this
device:
1.. Check to see if the NIDAQmx 8.0 or later drivers are installed on your
machine. For more information on verifying this, see the following link:
http://www.mathworks.com/access/helpdesk/help/toolbox/daq/f0-11021.html
2.. Quit MATLAB.
3.. Find the following file :
$MATLAB\toolbox\daq\daq\private\mwnidaqmx.ini
where $MATLAB is the MATLAB root installation directory obtained by
issuing:
matlabroot
at the MATLAB Command Prompt.
4.. Make a copy of this file and rename it to mwnidaqmx.ini.old.
5.. Open the file mwnidaqmx.ini in a text editor, and add the following
lines at the end of the file:
[USB-9215A]
hasAnalogInput = true
numAIChannels = 4
hasAnalogOutput = false
hasDigitalIO = false
[USB-9215A (BNC)]
hasAnalogInput = true
numAIChannels = 4
hasAnalogOutput = false
hasDigitalIO = false6.. Save the file mwnidaqmx.ini and restart MATLAB.
09-04-2006 12:12 PM
Jeremy,
I have confirmed that Matlab supports NIDAQmx since I have used it myself. Here is the list of supported NI hardware from the Matlab web site:
http://www.mathworks.com/products/daq/supportedio5871.html
Matlab supports the PCI-6250 according to this website starting in Data Acquisition Toolbox V2.8. It looks like it supports NI-DAQmx for this board.
It looks like you are having trouble because you forgot to provide the resource name … Don’t use:
ai = analoginput('nidaq')
Instead, use something like this so that you provide the resource name:
ai = analoginput('nidaq',’Dev1’)
If you don’t know the resource name, use this to find out:
daqhwinfo(‘nidaq’)
Here is a Matlab code example using NIDAQmx that is probably useful to you:
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=12052
Tom