How to disable warning for Stateflow action language
이전 댓글 표시
I am working on a script which temporarily adds content to a Simulink model, builds the model, then removes the new content. I recently started adding a few Stateflow diagrams to these models, and I use the C action language in these diagrams. My script can add the Stateflow and then change the action language to C, but I cannot find a way to do both of these things in a single command line, so the Stateflow temporarily exists with the default m-script action language.
Here's the problem. For MatLab 2015B users of this script, the following warning appears at the top of the active Simulink window:
"You are adding a chart '...' that uses MATLAB as the action language to the model. Click here to change the action language to C. To always add a C chart henseforth, click here. Learn more"
The next two lines of my script change the action langue to C, but it is too late to prevent the warning from being displayed. Other people run this script, and I do not want to change their default settings. Any suggestion on how I can disable this warning, either by adding the Stateflow chart as a C action language in one line, or by temporarily disabling the warning?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!