How can I pass buses to referenced model?
조회 수: 23 (최근 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:
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
댓글 수: 0
답변 (1개)
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!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Subsystems에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!