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.

 Accepted Answer

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'.

More Answers (0)

Categories

Find more on Create Large-Scale Model Components in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!