How to replicate the "this" function in older than R2020b MATLAB releases?

1 回表示 (過去 30 日間)
Douglas Bonfim
Douglas Bonfim 2021 年 8 月 4 日
回答済み: Jorge Calvo 2021 年 10 月 5 日
I am currently developing a Statechart in Simulink that is controlled via an App created by App Designer. The release I am using is R2020a.
Using the R2020a version, is there any way to give the app access to chart data during simulation without using the this keyword, since it was introduced in R2020b?
Any help would be appreciated.

回答 (1 件)

Jorge Calvo
Jorge Calvo 2021 年 10 月 5 日
If all you need is one-way connectivity (app to model), here is an older version of an example that might fit your requirements:
This version uses set_param to connect the app to the Simulink model. In R2020b, we used the keyword "this" to revamp the example and provide two-way connectivity (app to model and model to app). I hope you find this helpful.

カテゴリ

Help Center および File ExchangeModel Compatibility についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by