Is it possible to use DAQ hardware added by National Instruments in NI-DAQmx version 8.6 with the Data Acquisition Toolbox 2.11 (R2007b)?

1 view (last 30 days)
I would like to use the DAQ hardware added by National Instruments in NIDAQmx version 8.6 with the Data Acquisition Toolbox 2.11(R2007b). The boards added are PXI-4496, PXI-4498, USB-6221 (BNC) , USB-6251 (BNC), USB-6259 (BNC), USB-6225, USB-6225 (Mass Termination), USB-6229 (BNC) , USB-6255 and USB-6255 (Mass Termination).
The Measurement & Automation Explorer (MAX) from National Instruments correctly detects the hardware. But when I execute the daqsupport script, there is no value in the ObjectConstructor Name property, as shown in the example below:
----------Adaptor Information for adaptor nidaq ----------
adaptorInfo =
AdaptorDllName: [1x68 char]
AdaptorDllVersion: '2.11 (R2007b)'
AdaptorName: 'nidaq'
BoardNames: {'USB-6259 (BNC)'}
InstalledBoardIds: {'Dev1'}
ObjectConstructorName: {'' '' ''}

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 20 Aug 2009
The DAQ hardware added by National Instruments in NI-DAQmx version 8.6 device is not supported by the Data Acquisition Toolbox 2.11 (R2007b).
To work around this issue, perform these steps to add support for these devices in Data Acquisition Toolbox 2.11 (R2007b):
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:
[PXI-4496]
hasAnalogInput = true
numAIChannels = 16
minAISampleRate = 100
hasAnalogOutput = false
hasDigitalIO = false
[PXI-4498]
hasAnalogInput = true
numAIChannels = 16
minAISampleRate = 100
hasAnalogOutput = false
hasDigitalIO = false
[USB-6251 (BNC)]
hasAnalogInput = true
numAIChannels = 16
hasAnalogOutput = true
numAOChannels = 2
maxAOSampleRate = 2860000,2000000
hasDigitalIO = true
digitalPortSize = 8,8,8
digitalPortCap = 4,4,4
[USB-6259 (BNC)]
hasAnalogInput = true
numAIChannels = 32
hasAnalogOutput = true
numAOChannels = 4
maxAOSampleRate = 2860000,2000000,1540000,1250000
hasDigitalIO = true
digitalPortSize = 32,8,8
digitalPortCap = 4,4,4
[USB-6221 (BNC)]
hasAnalogInput = true
numAIChannels = 16
hasAnalogOutput = true
numAOChannels = 2
maxAOSampleRate = 833000,740000
hasDigitalIO = true
digitalPortSize = 8,8,8
digitalPortCap = 4,4,4
[USB-6225]
hasAnalogInput = true
numAIChannels = 80
hasAnalogOutput = true
numAOChannels = 2
maxAOSampleRate = 833000,740000
hasDigitalIO = true
digitalPortSize = 8,8,8
digitalPortCap = 4,4,4
[USB-6225 (Mass Termination)]
hasAnalogInput = true
numAIChannels = 80
hasAnalogOutput = true
numAOChannels = 2
maxAOSampleRate = 833000,740000
hasDigitalIO = true
digitalPortSize = 8,8,8
digitalPortCap = 4,4,4
[USB-6229 (BNC)]
hasAnalogInput = true
numAIChannels = 32
hasAnalogOutput = true
numAOChannels = 4
maxAOSampleRate = 833000,740000,666000,625000
hasDigitalIO = true
digitalPortSize = 32,8,8
digitalPortCap = 4,4,4
[USB-6255]
hasAnalogInput = true
numAIChannels = 80
hasAnalogOutput = true
numAOChannels = 2
maxAOSampleRate = 2860000,2000000
hasDigitalIO = true
digitalPortSize = 8,8,8
digitalPortCap = 4,4,4
[USB-6255 (Mass Termination)]
hasAnalogInput = true
numAIChannels = 80
hasAnalogOutput = true
numAOChannels = 2
maxAOSampleRate = 2860000,2000000
hasDigitalIO = true
digitalPortSize = 8,8,8
digitalPortCap = 4,4,4
5. Save the file mwnidaqmx.ini and restart MATLAB.

More Answers (0)

Products


Release

R2007b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!