Is it possible to change a workspace value during simulation?
Mostra commenti meno recenti
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?
Risposta accettata
Più risposte (2)
Sysenso Systems
il 20 Apr 2013
0 voti
If you want to make the change without updating the model, you may need to set "add_exec_event_listener" to the block which has the tunable parameter and you can change the value through a callback. Please read >> help add_exec_event_listener.
Moussaoui Aghiles
il 28 Dic 2020
0 voti
HiI have a problem I can not get the desired value with 'to workspace', or instead of having 3 value I find 51 mrc
Categorie
Scopri di più su Simulink Functions in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!