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

I would like to use the DAQ hardware added by National Instruments in NIDAQmx version 8.7 with the Data Acquisition Toolbox 2.12(R2008a). The boards added are NI USB-6281 (Mass Termination and Screw Terminal), NI USB-6289 (Mass Termination and Screw Terminal), NI USB-6509, NI USB-9219, NI USB-9229, NI USB-9229 (BNC), NI USB-9239, and NI USB-9239 (BNC). Refer to Device Support for a complete list of devices.
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.12 (R2008a)'
AdaptorName: 'nidaq'
BoardNames: {'9225 (BNC)'}
InstalledBoardIds: {'Dev1'}
ObjectConstructorName: {'' '' ''}

 Accepted Answer

This enhancement has been incorporated in Release 2008b (R2008b). For previous product releases, read below for any possible workarounds:
The DAQ hardware added by National Instruments in NI-DAQmx version 8.7 is not supported by the Data Acquisition Toolbox 2.12 (R2008a).
To work around this issue, perform these steps to add support for the NI USB-6281 (Mass Termination and Screw Terminal) and NI USB-6289 (Mass Termination and Screw Terminal) devices in Data Acquisition Toolbox 2.12 (R2008a):
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-6281]
hasAnalogInput = true
numAIChannels = 16
hasAnalogOutput = true
numAOChannels = 2
maxAOSampleRate = 2860000,2000000
hasDigitalIO = true
digitalPortSize = 8,8,8
digitalPortCap = 4,4,4
[USB-6281 (Mass Termination)]
hasAnalogInput = true
numAIChannels = 16
hasAnalogOutput = true
numAOChannels = 2
maxAOSampleRate = 2860000,2000000
hasDigitalIO = true
digitalPortSize = 8,8,8
digitalPortCap = 4,4,4
[USB-6289]
hasAnalogInput = true
numAIChannels = 32
hasAnalogOutput = true
numAOChannels = 4
maxAOSampleRate = 2860000,2000000,1540000,1250000
hasDigitalIO = true
digitalPortSize = 8,8,8
digitalPortCap = 4,4,4
[USB-6289 (Mass Termination)]
hasAnalogInput = true
numAIChannels = 32
hasAnalogOutput = true
numAOChannels = 4
maxAOSampleRate = 2860000,2000000,1540000,1250000
hasDigitalIO = true
digitalPortSize = 8,8,8
digitalPortCap = 4,4,4
[USB-6509]
hasAnalogInput = false
hasAnalogOutput = false
hasDigitalIO = true
digitalPortSize = 8,8,8,8,8,8,8,8,8,8,8,8
digitalPortCap = 3,3,3,3,3,3,3,3,3,3,3,3
[USB-9219]
hasAnalogInput = true
numAIChannels = 4
hasAnalogOutput = false
hasDigitalIO = false
[USB-9229]
hasAnalogInput = true
numAIChannels = 4
hasAnalogOutput = false
hasDigitalIO = false
[USB-9229 (BNC)]
hasAnalogInput = true
numAIChannels = 4
hasAnalogOutput = false
hasDigitalIO = false
[USB-9239]
hasAnalogInput = true
numAIChannels = 4
hasAnalogOutput = false
hasDigitalIO = false
[USB-9239 (BNC)]
hasAnalogInput = true
numAIChannels = 4
hasAnalogOutput = false
hasDigitalIO = false

More Answers (0)

Categories

Products

Release

R2008a

Tags

Community Treasure Hunt

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

Start Hunting!