Unable to set gain control as a variable in Simulink, setting a numeric value works OK.
Mostra commenti meno recenti
Simulink Version 9.3 (R2019a)
I'm unable to set the Gain control as a variable. The entire Gain block turns red with an exclamation mark.
Setting the Gain as a numeric value works OK.
Thank you.
Risposte (1)
Paul
il 1 Set 2021
It turns red with the exclamation mark because you haven't defined the variable in any workspace that the model can see (typically the base or model workspace) and/or you haven't updated the model since the variable was defined. For example, if the parameter in the Gain block is 'mygain' then define it with a value in the base workspace
>> mygain = 1;
Then update the diagram.
Categorie
Scopri di più su Simulink 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!