MATLAB: How to use the National Instruments PCI- and PXI-623x series devices with the Data Acquisition Toolbox 2.8.1 (R2006a)

Data Acquisition Toolbox

I would like to use the following NI PCI- and PXI-623x series devices with the Data Acquisition Toolbox 2.8.1(R2006a):
PCI-6230
PXI-6230
PCI-6232
PXI-6232
PCI-6233
PXI-6233

Best Answer

This enhancement has been incorporated in Release 2007a (R2007a). For previous product releases, read below for any possible workarounds:
The National Instruments PCI-623x 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:
$MATLAB\toolbox\daq\daq\private\mwnidaqmx.ini
where $MATLAB 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:
[PCI-6230]
;bank isolated, 8 AI channel, 250 kS/s, 16-bit M Series device
hasAnalogInput = true
numAIChannels = 8
hasAnalogOutput = true
numAOChannels = 4
maxAOSampleRate = 500000,450000,425000,400000
hasDigitalIO = true
digitalPortSize = 6,4
digitalPortCap = 1,2
[PXI-6230]
;bank isolated, 8 AI channel, 250 kS/s, 16-bit M Series device
hasAnalogInput = true
numAIChannels = 8
hasAnalogOutput = true
numAOChannels = 4
maxAOSampleRate = 500000,450000,425000,400000
hasDigitalIO = true
digitalPortSize = 6,4
digitalPortCap = 1,2
[PCI-6232]
;250 KS/s, 16-bit, 16 single-ended or 8 differential AI channel isolated M Series device (sourcing DO)
hasAnalogInput = true
numAIChannels = 16
hasAnalogOutput = true
numAOChannels = 2
maxAOSampleRate = 500000,450000
hasDigitalIO = true
digitalPortSize = 6,4
digitalPortCap = 1,2
[PXI-6232]
;250 KS/s, 16-bit, 16 single-ended or 8 differential AI channel isolated M Series device (sourcing DO)
hasAnalogInput = true
numAIChannels = 16
hasAnalogOutput = true
numAOChannels = 2
maxAOSampleRate = 500000,450000
hasDigitalIO = true
digitalPortSize = 6,4
digitalPortCap = 1,2
[PCI-6233]
;250 KS/s, 16-bit, 16 single-ended or 8 differential AI channel isolated M Series device (sinking DO)
hasAnalogInput = true
numAIChannels = 16
hasAnalogOutput = true
numAOChannels = 2
maxAOSampleRate = 500000,450000
hasDigitalIO = true
digitalPortSize = 6,4
digitalPortCap = 1,2
[PXI-6233]
;250 KS/s, 16-bit, 16 single-ended or 8 differential AI channel isolated M Series device (sinking DO)
hasAnalogInput = true
numAIChannels = 16
hasAnalogOutput = true
numAOChannels = 2
maxAOSampleRate = 500000,450000
hasDigitalIO = true
digitalPortSize = 6,4
digitalPortCap = 1,2
5. Save the file mwnidaqmx.ini and restart MATLAB.