MATLAB: Are USB-6221 and USB-6229 from National Instruments supported by Data Acquisition Toolbox

62216229Data Acquisition Toolboxniusb

I would like to use National Instruments boards USB-6221 and USB-6229 with Data Acquisition Toolbox.

Best Answer

This enhancement has been incorporated in Release 2007b (R2007b). For previous product releases, read below for any possible workarounds:
The National Instruments USB-6221/6229 devices are not supported by Data Acquisition Toolbox.
To work around this issue with Data Acquisition Toolbox 2.10 (R2007a), perform these steps to add support for these devices:
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-6221]
hasAnalogInput = true
numAIChannels = 16
hasAnalogOutput = true
numAOChannels = 2
maxAOSampleRate = 833000,740000
hasDigitalIO = true
digitalPortSize = 8,8,8
digitalPortCap = 4,4,4
[USB-6221 (Mass Termination)]
hasAnalogInput = true
numAIChannels = 16
hasAnalogOutput = true
numAOChannels = 2
maxAOSampleRate = 833000,740000
hasDigitalIO = true
digitalPortSize = 8,8,8
digitalPortCap = 4,4,4
[USB-6229]
hasAnalogInput = true
numAIChannels = 32
hasAnalogOutput = true
numAOChannels = 4
maxAOSampleRate = 833000,740000,666000,625000
hasDigitalIO = true
digitalPortSize = 32,8,8
digitalPortCap = 4,4,4
[USB-6229 (Mass Termination)]
hasAnalogInput = true
numAIChannels = 32
hasAnalogOutput = true
numAOChannels = 4
maxAOSampleRate = 833000,740000,666000,625000
hasDigitalIO = true
digitalPortSize = 32,8,8
digitalPortCap = 4,4,4
5. Save the file mwnidaqmx.ini and restart MATLAB.
For versions of Data Acquisition Toolbox prior to 2.10 (R2007a), there are no work-arounds.