MATLAB: How to use the National Instruments USB-625x series devices with the Data Acquisition Toolbox 2.8.1 (R2006a)

62516259Data Acquisition Toolboxusb 6259usb-6251

I would like to use the following NI USB-625x series devices with the Data Acquisition Toolbox 2.8.1(R2006a):
USB-6251
USB-6251 (Mass Termination)
USB-6259
USB-6259 (Mass Termination)

Best Answer

The National Instruments USB-6251/6259 series devices are not supported by the Data Acquisition Toolbox 2.8.1 (R2006a).
To work around this issue, 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-6251]
; 16 AI channel, 1 MS/s, 16-bit M Series device
hasAnalogInput = true
numAIChannels = 16
hasAnalogOutput = true
numAOChannels = 2
maxAOSampleRate = 2860000,2000000
hasDigitalIO = true
digitalPortSize = 8,8,8
digitalPortCap = 4,4,4
[USB-6251 (Mass Termination)]
; 16 AI channel, 1 MS/s, 16-bit M Series device
hasAnalogInput = true
numAIChannels = 16
hasAnalogOutput = true
numAOChannels = 2
maxAOSampleRate = 2860000,2000000
hasDigitalIO = true
digitalPortSize = 8,8,8
digitalPortCap = 4,4,4
[USB-6259]
; 32 AI channel, 1 MS/s, 16-bit M Series device
hasAnalogInput = true
numAIChannels = 32
hasAnalogOutput = true
numAOChannels = 4
maxAOSampleRate = 2860000,2000000,1540000,1250000
hasDigitalIO = true
digitalPortSize = 32,8,8
digitalPortCap = 4,4,4
[USB-6259 (Mass Termination)]
; 32 AI channel, 1 MS/s, 16-bit M Series device
hasAnalogInput = true
numAIChannels = 32
hasAnalogOutput = true
numAOChannels = 4
maxAOSampleRate = 2860000,2000000,1540000,1250000
hasDigitalIO = true
digitalPortSize = 32,8,8
digitalPortCap = 4,4,4
5. Save the file mwnidaqmx.ini and restart MATLAB.