Hi,
I have stateflow in my model.If stateflow is open,then while doing simulation , it takes lot of time since it animates it. So I want to make sure that whether the staeflow in my model is open or not & if it is open then I want to close it first then save the model(so that when I run sim command, it will run quickly with state chart closed), but if stateflow is not open then there is no need to save the model & I can run sim command directly.using sfclose is an option, but it do not tell me whether stateflow was open or not(so I cant decide whether to save model or not ), I want to confirm first that it is open & then only I want to use sfclose. I have tried hndls =find_system(<mdl>,'BlockType','SubSystem','Open','on'); but it gives empty array even though stateflow chart is open or closed.
Please suggest. Thanks is advance! Sameer
Best Answer