How can i acces to object matlab in stateflow
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello, I have a script in InitFcn callback to display a webmap and a wmmarker. In my Chart, i want to remove this wmmarker and situate at a other place. i can acces to a vector of double in the worspace, but not to a handle of wmmarker. I have this fault: Expression 'map.webmap.MarkerOverlay' for type of data 'h1' did not evaluate to a valid type. is it a good idea to update a webmap with a chart stateflow?
0 commentaires
Réponse acceptée
Jordan Ross
le 24 Jan 2017
Hello Louis,
From the screenshot you provided the error is due to the fact that a Simulink.Parameter can not have a type of "map.webmap.MarkerOverflay".
Since in your "InitFcn" callback you are creating the handles in the base workspace you can just have a MATLAB Function in your Stateflow chart that operates on that map handle. Attached is an example constructed in R2016b which accesses objects in the base workspace when using either the MATLAB Action language or the C action language.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Complex Logic dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!