addTriggerConnection to mcc analog input device

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