App Designer + Simulink

Let's say I have two Edit Field (Numeric) in App Designer, and I have a Model in Simulink that just add two numbers, how can I get the result from this Model?
I already tried to use assignin() in AppDesigner with the callback function, and run the model through sim(), but I always get error, or the value just don't pop up. Is it possible to do what I want, or the connection between Simulink and AppDesigner is just through signal problems in a certain time?

回答(1 个)

Askkalon
Askkalon 2019-10-12

0 个投票

No need for help, I made it.
If anyone else has this doubt, just ask here.

2 个评论

how you did ? please
"get_param" or you can use "simout" block,then get data from matlab workspace in appdesigner

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

产品

版本

R2018b

提问:

2019-10-12

评论:

2020-12-16

Community Treasure Hunt

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

Start Hunting!

Translated by