Simulink Variables in the Model Explorer NEVER Change? Why??????
Mostra commenti meno recenti
Hi All,
I inherited a Simulink file because I was asked to continue someone else's work. I agreed to this, and now I would like to modify some of the constants called out in the model explorer. When I do this, the constants automatically revert back to their initial values when the run button is pressed.
Scenario:
Matlab starts, I open the Simulink file. There are no variables in the model explorer when I start, after I hit run the constants in the model explorer populate. I change values of constants in model explorer. I press 'run', the values revert back to their original value and completes its execution of the program.
How can I change the constants?! Is there a file setting that I can untick somewhere? What is going on?
Thanks, -t
Matlab 2011Ra Windows 7
4 Commenti
Christopher Berry
il 7 Ago 2014
Hey Thomas,
Could you post your Simulink model file?
Thomas
il 7 Ago 2014
Andy L
il 7 Ago 2014
Given the amount of control you can have over simulink blocks it is very difficult to tell what this could be.
I would check to see if any of your sub-systems are masked? Coding in these masks can change the values of variables upon running the model.
Thomas
il 7 Ago 2014
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Simulink Environment Customization 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!