MATLAB: Can I use the National Instruments USB-6212 (BNC) with Data Acquisition Toolbox 2.14 (R2009a)

Data Acquisition Toolboxmwnidaqmx.ini

I would like to be able to use National Instruments USB-6212 (BNC) with Data Acquisition Toolbox 2.14 (R2009a).

Best Answer

This enhancement has been incorporated in Release 2010a (R2010a). For previous product releases, read below for any possible workarounds:
National Instruments USB-6212 (BNC) is not supported by Data Acquisition Toolbox 2.14 (R2009a).
To work around this issue, perform these steps to add support for these devices in MATLAB 7.8 (R2009a):
1. Quit MATLAB.
2. Find the following file:
$MATLABROOT\toolbox\daq\daq\private\mwnidaqmx.ini
(where $MATLABROOT is the MATLAB root installation directory obtained by issuing:
matlabroot
at the MATLAB Command Prompt.)
3. Make a copy of this file and rename it to mwnidaqmx.ini.old.
4. Open the file mwnidaqmx.ini in a text editor, and add the following lines at the end of the file:
[USB-6212 (BNC)]
hasAnalogInput = true
numAIChannels = 16
hasAnalogOutput = true
numAOChannels = 2
maxAOSampleRate = 250000,250000
hasDigitalIO = true
digitalPortSize = 16,8,8
digitalPortCap = 4,4,4
5. Save the file mwnidaqmx.ini and restart MATLAB.