필터 지우기
필터 지우기

addTriggerConnection to mcc analog input device

조회 수: 1 (최근 30일)
Patrik
Patrik 2017년 4월 21일
답변: Ankita Nargundkar 2017년 4월 26일
I am trying to create a program for acquiring data with an MCC USB-1602 device. This has not been possible with the session-based approach until Matlab 2017a. I now have this version, and have downloaded Measurement Computings hardware support package. I can now create a session and add channels to it. I can use it to gather data. So far everything is ok. The problem is that I cannot add triggers to the session object. When I use the function "addTriggerConnection" I get the following error: "Method 'addTriggerConnection' is not supported on objects of class 'daq.sdk.Session'."
Is this a bug? Or is the hardware support package for MCC not complete? When I try to debug, I feel like there are things missing from the vendor specific session subclass.
Any advice is greatly appreciated!
/ Patrik

답변 (1개)

Ankita Nargundkar
Ankita Nargundkar 2017년 4월 26일
Although Measurement Computing data acquisition hardware is supported via the Session interface in MATLAB R2017a there are some caveats. Supported functionality is for analog input and analog output operations (inputSingleScan, outputSingleScan, startForeground, startBackground) in MATLAB.
The following functionality is NOT currently supported - Digital channels - Hardware trigger - External clock - Compatibility with Data Acquisition Toolbox Simulink blocks
That is the reason you are unable to add triggers to session objects. Here is a related post

카테고리

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