How can I pass buses to referenced model?

23 ビュー (過去 30 日間)
Marco Bottani
Marco Bottani 2019 年 7 月 8 日
回答済み: Maadhav Akula 2019 年 7 月 30 日
Hello,
I've a subsystem that I want to convert in a Referenced model, this subsystem have 2 buses as input a 1 as output.
As long as I use subsystem everthing works fine, but when I try to convert it in a Referenced model this error appears:
Invalid setting in 'xxx/currentCtrlOut' for parameter 'OutDataTypeStr'.
Caused by:
  • Error evaluating parameter 'OutDataTypeStr' in 'xxx/currentCtrlOut'
  • Cannot resolve variable 'currentCtrlOut'
  • Variable 'currentCtrlOut' has been deleted from base workspace.
How can I solve it?
Thanks a lot for the help

回答 (1 件)

Maadhav Akula
Maadhav Akula 2019 年 7 月 30 日
From your question I am assuming that currentCtrlOut is the output from the referenced model and I think that currentCtrlOut variable is declared in the referenced model (which makes it local to the Model Worksapce), in a Reference model the Model Workspace is cleared immediately after computing that model. To avoid this, please refer to the link below:
If that does not solve your issue please also refer to this link:
Hope it helps!

カテゴリ

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

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by