MATLAB: Can I use the National Instruments USB-6212 (Mass Termination) and USB-6216 (Mass Termination) with Data Acquisition Toolbox 2.14 (R2009a)

Data Acquisition Toolboxni

I would like to be able to use National Instruments USB-6212 (Mass Termination) and USB-6216 (Mass Termination) devices with Data Acquisition Toolbox.

Best Answer

This enhancement has been incorporated in Data Acquisition Toolbox 2.15 (R2009b). For previous product releases, read below for any possible workarounds:
National Instruments USB-6212 (Mass Termination) and USB-6216 (Mass Termination) devices are 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 (Mass Termination)]
hasAnalogInput = true
numAIChannels = 16
hasAnalogOutput = true
numAOChannels = 2
maxAOSampleRate = 250000,250000
hasDigitalIO = true
digitalPortSize = 8,8,8
digitalPortCap = 4,4,4
[USB-6216 (Mass Termination)]]
hasAnalogInput = true
numAIChannels = 16
hasAnalogOutput = true
numAOChannels = 2
maxAOSampleRate = 250000,250000
minAONumSamples = 2
hasDigitalIO = true
digitalPortSize = 8,8,8
digitalPortCap = 4,4,4
5. Save the file mwnidaqmx.ini and restart MATLAB.
To add support for the non-Mass Termination versions of these devices, refer to the Related Solution listed below.