MATLAB Answers

addTriggerConnection to mcc analog input device

5 views (last 30 days)
Patrik
Patrik on 21 Apr 2017
Answered: Ankita Nargundkar on 26 Apr 2017
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

Answers (1)

Ankita Nargundkar
Ankita Nargundkar on 26 Apr 2017
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

Community Treasure Hunt

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

Start Hunting!