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

1 回表示 (過去 30 日間)
Hendrik Maat
Hendrik Maat 2017 年 5 月 26 日
コメント済み: Maria Veldhuizen 2018 年 7 月 5 日
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 Center および File ExchangeHardware Discovery and Setup についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by