06-22-2010 05:12 AM
I want to use the NI USB-6501 digital I/O with data acquisition toolbox in matlab?
06-22-2010 07:38 AM
The USB-6501 is supported by Data Acquisition Toolbox in MATLAB releases R14SP3+ and later.
The full list of National Instruments devices supported by Data Acquisition Toolbox is here:
http://www.mathworks.com/products/daq/supportedio14005.html
Begin to learn how to use digital input and output here:
http://www.mathworks.com/access/helpdesk/help/toolbox/daq/f11-17944.html
Inside MATLAB you can view demos in the documentation.
To see two digital demos you can type these commands at the MATLAB command line:
>> showdemo('demodio_intro')
>> showdemo('demodio_line')
Best regards,
Sherryl
08-26-2013 01:09 PM
If you managed to read in from the NI USB-6501, I would be extremely thankfull, if you would be willing to share some code!
Best!
09-03-2013 08:21 AM
Titoschmi,
All of the commands, as well as additional tips, can be found here: http://www.mathworks.com/help/daq/
Please be aware that each of the most recent versions of Matlab has added additional functionality to the session-based DAQ interface. For example, R2012a only supports counter channels (P2.7 on the USB-6501), R2012b also supports non-counter, non-clocked digital I/O, and R2013a also supports non-counter, clocked digital I/O.
Here is an example of how to read a non-counter, non-clocked digital input:
s = daq.createSession('ni');
s.addDigitalChannel('Dev1','port1/line0','InputOnly');
s.inputSingleScan()