MATLAB: How to use Measurement Computing USB 31xx series hardware with Data Acquisition Toolbox 2.9 (R2006b)

Data Acquisition Toolboxmcc

I would like to use one of the following Measurement Computing boards with Data Acquisition Toolbox.
USB-3101
USB-3102
USB-3103
USB-3104
USB-3105
USB-3106
USB-3110
USB-3112
USB-3114

Best Answer

The Measurement Computing USB 31xx series devices are not supported by the Data Acquisition Toolbox.
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\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-3101]
;USB-3101: 16-bit, 4-channel analog voltage outputs
ID = 0x9A
Bus = USB
AOResolution = 16
AOMaxSR = 100
AOScanning = 0
AOClockingType = 3
OutputRanges = 1,100 ; 0-10, -10 - +10 Volts
DIOConfigurable = 1
DPORTS = 1
DPORT0LINES = 8
DPORT0TYPE = 1
DPORT0CONFIG = 3
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[USB-3102]
;USB-3102 : 16-bit, 4-channel analog voltage/current outputs
ID = 0x9B
Bus = USB
AOResolution = 16
AOMaxSR = 100
AOScanning = 0
AOClockingType = 3
OutputRanges = 1,100,204 ; 0-10, -10 - +10 Volts, 0-20mA
DIOConfigurable = 1
DPORTS = 1
DPORT0LINES = 8
DPORT0TYPE = 1
DPORT0CONFIG = 3
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[USB-3103]
;USB-3103 : 16-bit, 8-channel analog voltage output
ID = 0x9C
Bus = USB
AOResolution = 16
AOMaxSR = 100
AOScanning = 0
AOClockingType = 3
OutputRanges = 1,100 ; 0-10, -10 - +10 Volts
DIOConfigurable = 1
DPORTS = 1
DPORT0LINES = 8
DPORT0TYPE = 1
DPORT0CONFIG = 3
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[USB-3104]
;USB-3104: 16-bit, 8-channel analog voltage/current outputs
ID = 0x9D
Bus = USB
AOResolution = 16
AOMaxSR = 100
AOScanning = 0
AOClockingType = 3
OutputRanges = 1,100,204 ; 0-10, -10 - +10 Volts, 0-20mA
DIOConfigurable = 1
DPORTS = 1
DPORT0LINES = 8
DPORT0TYPE = 1
DPORT0CONFIG = 3
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[USB-3105]
;USB-3105: 16-bit, 16-channel voltage output for USB
ID = 0x9E
Bus = USB
AOResolution = 16
AOMaxSR = 100
AOScanning = 0
AOClockingType = 3
OutputRanges = 1,100 ; 0-10, -10 - +10 Volts
DIOConfigurable = 1
DPORTS = 1
DPORT0LINES = 8
DPORT0TYPE = 1
DPORT0CONFIG = 3
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[USB-3106]
;USB-3106: 16-bit, 16-channel voltage/current outputs
ID = 0x9F
Bus = USB
AOResolution = 16
AOMaxSR = 100
AOScanning = 0
AOClockingType = 3
OutputRanges = 1,100,204 ; 0-10, -10 - +10 Volts, 0-20mA
DIOConfigurable = 1
DPORTS = 1
DPORT0LINES = 8
DPORT0TYPE = 1
DPORT0CONFIG = 3
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[USB-3110]
;USB-3110: 16-bit, 4-channel high-drive analog output for USB
ID = 0xA2
Bus = USB
AOResolution = 16
AOMaxSR = 100
AOScanning = 0
AOClockingType = 3
OutputRanges = 1,100 ; 0-10, -10 - +10 Volts
DIOConfigurable = 1
DPORTS = 1
DPORT0LINES = 8
DPORT0TYPE = 1
DPORT0CONFIG = 3
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[USB-3112]
;USB-3112 : 16-bit, 8-channel high-drive analog output for USB
ID = 0xA3
Bus = USB
AOResolution = 16
AOMaxSR = 100
AOScanning = 0
AOClockingType = 3
OutputRanges = 1,100 ; 0-10, -10 - +10 Volts
DIOConfigurable = 1
DPORTS = 1
DPORT0LINES = 8
DPORT0TYPE = 1
DPORT0CONFIG = 3
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[USB-3114]
;USB-3114 : 16-bit, 16-channel high-drive analog output for USB
ID = 0xA4
Bus = USB
AOResolution = 16
AOMaxSR = 100
AOScanning = 0
AOClockingType = 3
OutputRanges = 1,100 ; 0-10, -10 - +10 Volts
DIOConfigurable = 1
DPORTS = 1
DPORT0LINES = 8
DPORT0TYPE = 1
DPORT0CONFIG = 3
5. Save the file mwmcc.ini and restart MATLAB.