When adding a masked variable to my simulink block, the block hangs indefinitely.

When I add a masked variable to one of my libraries within a Simulink Project, the library then hangs or freezes indefinitely when I attempt to go underneath the mask.
Only when I open the file outside my Simulink Project can I remove the masked variable and am I able to reopen the file within the project.

 채택된 답변

Aric Schorr
Aric Schorr 2017년 1월 25일
So I resolved this! But it caused me great pains on the way to figuring out my error.
If you add assign a masked variable with the same name as another library file within your project, Simulink freezes up when attempting to evaluate the masked variable with the library.
So, if in my project I have two libraries:
"LibA.slx", and "LibB.slx"
Then I cannot add a mask to a block within LibB that has the internal variable name 'LibA'.

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Author Block Masks에 대해 자세히 알아보기

제품

질문:

2017년 1월 25일

답변:

2017년 1월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by