COM object event with input parameter

조회 수: 2 (최근 30일)
wonderkismet
wonderkismet 2019년 9월 16일
편집: wonderkismet 2019년 9월 16일
The ophir powermeter's Event has input parameters to determind which device fires the event.
dataready.jpg
However it seem Matlab does not support event with input parameters? not like C++
For example:
C = actxcontrol('mwsamp.mwsampctrl.2',[0 0 200 200]);
registerevent(C,{'Click' @myclick})
eventlisteners(C)
It seem Matlab only support event name (char) vs event handler (func) pairs
I know how to pass parameter to event handler, the problem is , who to pass parameter to the event itself.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Use COM Objects in MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by