COM object event with input parameter
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
The ophir powermeter's Event has input parameters to determind which device fires the event.
![dataready.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/238475/dataready.jpeg)
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 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Use COM Objects in MATLAB in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!