For R2022b and after
If you are using R2022b or later, you can use the "MultiPaneSimApp" default template for simulink.compiler.genapp to quickly generate an app with Live IO . This is the default template for R2022b so you only need to call genapp with the model name. >>simulink.compiler.genapp('modeName')
For R2022a and before
If you are using R2022a release or earlier, then you can use the steps below.
After running "simulink.compiler.genapp", replace "@AppHelper" in the generated app with the supplied "@AppHelper" folder from "option1.zip":
- Extract the attached "option1.zip" into a directory of your choice
- Use the extracted @AppHelper folder to replace the one in your app
- Run the app using:\n
You can also control the live plotting window size in "AppHelper.m" using the "WindowSize" property.
The files modified in @AppHelper are:
- AppHelper.m
- refreshTimerFcn.m
- stopButtonPushed.m
- updateSigsAndAxesGL.m
- runPauseResumeButtonPushed.m
The following file was added to @AppHelper: