Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
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

Réponse acceptée

Archita P
Archita P le 30 Mai 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 commentaire
Maria Veldhuizen
Maria Veldhuizen le 5 Juil 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.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Data Acquisition Toolbox Supported Hardware dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by