MATLAB: How to use the Measurement Computing Corporation USB-1616HS series devices with the Data Acquisition Toolbox 2.11 (R2007b)

Data Acquisition Toolbox

I would like to use the following Measurement Computing Corporation USB-1616HS series devices with the Data Acquisition Toolbox 2.11 (R2007b):
USB-1616HS
USB-1616HS-2
USB-1616HS-4

Best Answer

Support for Measurement Computing Corporation USB-1616HS series devices has been incorporated in MATLAB 7.6 (R2008a). For previous product releases, please perform the steps given below to add support for these devices:
1. Quit MATLAB.
2. Find the following file:
$MATLABROOT\toolbox\daq\daq\private\mwmcc.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 mwmcc.ini.old.
4. Open the file mwmcc.ini in a text editor, and add the following lines at the end of the file:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[USB-1616HS]
ID = 0x00CB
Bus = USB
AIResolution = 16
AIClockingType = 0
AIMaxSR = 1000000
AIMinSR = 1
AIBurstMode = 0
SettleTime = 1.0
Scanning = 1
AISupportedTriggerConditions = 15363 ; (11110000000011)
AnalogTrig = 2
DigitalTrig = 1
ChanGainQueue = 512
AIFIFO = 1000000
InputRanges = 1,0,14,4,6,13,7
DPORTS = 3
DPORT0LINES = 8
DPORT0TYPE = 10
DPORT0CONFIG = 2
DPORT1LINES = 8
DPORT1TYPE = 11
DPORT1CONFIG = 2
DPORT2LINES = 8
DPORT2TYPE = 12
DPORT2CONFIG = 2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[USB-1616HS-2]
ID = 0x00CC
Bus = USB
AIResolution = 16
AIClockingType = 0
AIMaxSR = 1000000
AIMinSR = 1
AIBurstMode = 0
SettleTime = 1.0
Scanning = 1
AISupportedTriggerConditions = 15363 ; (11110000000011)
AnalogTrig = 2
DigitalTrig = 1
ChanGainQueue = 512
AIFIFO = 1000000
InputRanges = 1,0,14,4,6,13,7
AOResolution = 16
AOMaxSR = 1000000
AOClockingType = 0
OutputRanges = 1
DPORTS = 3
DPORT0LINES = 8
DPORT0TYPE = 10
DPORT0CONFIG = 2
DPORT1LINES = 8
DPORT1TYPE = 11
DPORT1CONFIG = 2
DPORT2LINES = 8
DPORT2TYPE = 12
DPORT2CONFIG = 2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[USB-1616HS-4]
ID = 0x00CD
Bus = USB
AIResolution = 16
AIClockingType = 0
AIMaxSR = 1000000
AIMinSR = 1
AIBurstMode = 0
SettleTime = 1.0
Scanning = 1
AISupportedTriggerConditions = 15363 ; (11110000000011)
AnalogTrig = 2
DigitalTrig = 1
ChanGainQueue = 512
AIFIFO = 1000000
InputRanges = 1,0,14,4,6,13,7
AOResolution = 16
AOMaxSR = 1000000
AOClockingType = 0
OutputRanges = 1
DPORTS = 3
DPORT0LINES = 8
DPORT0TYPE = 10
DPORT0CONFIG = 2
DPORT1LINES = 8
DPORT1TYPE = 11
DPORT1CONFIG = 2
DPORT2LINES = 8
DPORT2TYPE = 12
DPORT2CONFIG = 2
5. Save the file mwmcc.ini and restart MATLAB.