DAQ USB-1024HLS (Measurement Computing Corporation) addDigitalChannel error
2 views (last 30 days)
Show older comments
Hendrik Maat
on 26 May 2017
Commented: Maria Veldhuizen
on 5 Jul 2018
Dear all, We have a USB-1024HLS device from mcc (Measurement Computing Corporation). I am using Matlab R2017a Win64 to program this device. Their seems to be a problem with the new release Matlab R2017a Win64 and / or USB-1024HLS device driver
My code is:
clear, clc
daqreset;
vendor = daq.getVendors;
device = daq.getDevices;
session = daq.createSession('mcc');
addDigitalChannel(session,'Board0','PortA0:7','InputOnly')
Error message is: The requested subsystem 'DigitalIO' does not exist on this device.
After checking a few things it seems the channel ID name 'PortA0:7' is incorrect in addDigitalChannel(session,'Board0','PortA0:7','InputOnly') command.
Will it be possible to help me please? Thanking you in advance. Best regards, Hendrik
0 Comments
Accepted Answer
Archita P
on 30 May 2017
The Measurement Computing DAQ support package is expected to work with any Measurement Computing DAQ device that supports analog input and analog output operations. It does not support digital I/O operations. Refer to the following link to get the list of supported hardware- https://www.mathworks.com/hardware-support/measurement-computing.html
1 Comment
Maria Veldhuizen
on 5 Jul 2018
I am working with the exact same device and Matlab version and running into the same problem.
I have downloaded the measurement computing daq support package.
addCounterInputChannel or addAnalogOutputChannel or addDigitalChannel all results in the same error: The requested subsystem 'xxx' does not exist on this device. Please advise?
I used to be able to work with this device with the following commands:
dio=digitalio('mcc'); %specify dio OutputLinesPort1 = addline(dio,0:7,1,'Out'); putvalue(OutputLinesPort1, 0);%set value to 0
Back then I also needed to copy mwmcc.ini into folders: toolbox\daq\daq\private and toolbox\daq\daq\src\mwmcc Not sure what the current equivalent of these folders is, or if this is still necessary with the support package installed.
More Answers (0)
See Also
Categories
Find more on Hardware Discovery and Setup in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!