Create two different masks for a subsystem
Show older comments
Hello everyone,
I'm looking for a way to create two differents masks for a subsystem block in Simulink. I need it because I need to create a block, which is capable to show a mask when the simulation is stopped and another mask while the simulation is running. For the moment I wrote this code to put inside the OpenFcn
if (strcmp(get_param(gcs, 'SimulationStatus'),'paused') | strcmp(get_param(gcs, 'SimulationStatus'),'running') )
open_system(gcb, 'mask1')
else
open_system(gcb, 'mask')
end
but I cannot use because I don't know how to create two masks for a susbsystem
can you help me? at least is it possible to create two different mask?
thanks in advance
Accepted Answer
More Answers (0)
Categories
Find more on Programmatic Model Editing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!