フィルターのクリア

Get list of global variables used by model reference

1 回表示 (過去 30 日間)
Carl Banks
Carl Banks 2018 年 6 月 18 日
回答済み: Carl Banks 2022 年 6 月 16 日
Sometimes when I run a model with referenced models, I see a message like this:
### Model reference < redacted > may be out of date because global variables used by this model are incompatible with the variables that were in the base workspace when the target was generated. This model uses global variable(s): '<unfortunately_long_list_of_variables>'.
I would like to know if there's a way to get this list of globals that the model uses without having to deliberately change a global just to see this message. Thanks.

採用された回答

Carl Banks
Carl Banks 2022 年 6 月 16 日
Simulink.findVars is the answer. Been in Matlab since 2010a.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Environment Customization についてさらに検索

製品


リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by