From: MZ Zeitouny on
Hello
I started interfacing a data acquisition board. I'm using an NI DAQ.
I should do the following:
ai=analoginput('nidaq','Dev1');

in fact, if I get info regarding the NI DAQ, I obtain:

>>daqhwinfo('nidaq')
ans =

AdaptorDllName: [1x68 char]
AdaptorDllVersion: '2.15 (R2009b)'
AdaptorName: 'nidaq'
BoardNames: {'cDAQ-9172' 'NI 9215 (BNC)'}
InstalledBoardIds: {'cDAQ1' 'cDAQ1Mod1'}
ObjectConstructorName: {2x3 cell}

So the Board ID is cDAQ1. right???

but it is not working
>>ai=analoginput('nidaq','cDAQ1');
with the error message:
This device is not recognized by the toolbox. Visit the Data Acquisition
Toolbox Supported Hardware page at
http://www.mathworks.com/products/daq/hardware.shtml for a list of supported
devices. Use the hardware request form to request additional support.

Can you please help??
I'm a new user ....
Thanks
From: Mark Shore on
"MZ Zeitouny" <mzeitouny(a)gmail.com> wrote in message <hrpfus$aig$1(a)fred.mathworks.com>...
> Hello
> I started interfacing a data acquisition board. I'm using an NI DAQ.
> I should do the following:
> ai=analoginput('nidaq','Dev1');
>
> in fact, if I get info regarding the NI DAQ, I obtain:
>
> >>daqhwinfo('nidaq')
> ans =
>
> AdaptorDllName: [1x68 char]
> AdaptorDllVersion: '2.15 (R2009b)'
> AdaptorName: 'nidaq'
> BoardNames: {'cDAQ-9172' 'NI 9215 (BNC)'}
> InstalledBoardIds: {'cDAQ1' 'cDAQ1Mod1'}
> ObjectConstructorName: {2x3 cell}
>
> So the Board ID is cDAQ1. right???
>
> but it is not working
> >>ai=analoginput('nidaq','cDAQ1');
> with the error message:
> This device is not recognized by the toolbox. Visit the Data Acquisition
> Toolbox Supported Hardware page at
> http://www.mathworks.com/products/daq/hardware.shtml for a list of supported
> devices. Use the hardware request form to request additional support.
>
> Can you please help??
> I'm a new user ....
> Thanks

Well, first, are you in fact using a NI-9215 module (and if so, which model) in a cDAQ-9172 chassis? And if so, is it listed under the supported hardware for whatever version of the Data Acquisition Toolbox you might have? http://www.mathworks.com/products/daq/supportedio.html

I decided to use LabVIEW rather than the MATLAB toolbox to minimize this sort of frustration.