Some Constant blocks not tunable in Simulink External Mode
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I'm running 2014a and I am using a Simulink model in External run mode. I have a few constant blocks I'd like to change the value of however they aren't all tunable during run time. For instance, Constant1 and Constant2 are connected to a Subsystem and Constant1's block properties are greyed out during runtime however Constant2's block properties I can change during runtime. They are virtually identically blocks wrt properties. Not sure what's going on here.
3 comentarios
Mike Buba
el 24 de Oct. de 2021
I noticed the not tunable constants were directly or indirectly, via subtract block (reference - feedback), connected to the PID Controller block.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/776718/image.png)
When I implemented my PI block (similar to as it is under the PID Controller's mask), I could tune them.
Respuestas (1)
Sebastian Castro
el 14 de Mayo de 2015
Are those constant blocks using hard-coded numerical values or are they variables (either numeric or Simulink.Parameter objects?)
- Sebastian
2 comentarios
Sebastian Castro
el 14 de Mayo de 2015
Strange... so both "Structure" and "Integrator" are MATLAB structures, then?
Which of those blocks in your screenshot are the constant blocks in question, and what do they feed into?
Ver también
Categorías
Más información sobre String en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!