How to set the simulation mode to Normal, in case of simulink standalone app?
5 ビュー (過去 30 日間)
古いコメントを表示
I am trying to create a standalone application using the MATLAB app designer. I want to control the simulation mode. I want to set the Simulation mode to Normal. I cannot simulate my current simulation model in rapid mode due to some restrictions from the S-Functions.
.
I am using the following code to overwrite the simulation mode.
%% simulinkModel is the Name of the Model
simIn = Simulink.SimulationInput(simulinkModel);
simIn = setModelParameter(simIn, 'SimulationMode', 'Normal');
out = sim(simIn);
0 件のコメント
回答 (1 件)
Gokul Nath S J
2023 年 4 月 21 日
Hi Rahul,
Based on your query it seems that you want to control the simulation parameters by having it configurable in the application itself. As a possible workaround, you can enabled a push button and once it's activated get a callback to set the setModelParameters to 'Normal'. By doing so, you can have the configurability to choose between the option.
Thanks,
Gokul Nath S J
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!