Is it possible to change a workspace value during simulation?
16 views (last 30 days)
I have a variable defined as scope parameter inside stateflow and i defined the value of that parameter in workspace. While running, shall i able to pause the simulation and change the value in workspace?
Kaustubha Govind on 19 Apr 2013
Yes, that should be possible as long the the parameter is marked as tunable (which it is by default, I think). You will need to run Ctrl+D on the model or set_param('modelname', 'SimulationCommand', 'update') after changing the workspace value to ensure that Simulink notices the new value.