DAQ USB-1024HLS (Measurement Computing Corporation) addDigitalChannel error

2 次查看(过去 30 天)
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

采纳的回答

Archita P
Archita P 2017-5-30
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 个评论
Maria Veldhuizen
Maria Veldhuizen 2018-7-5
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.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Hardware Discovery and Setup 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by