Some Constant blocks not tunable in Simulink External Mode
이전 댓글 표시
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
Mike Buba
2021년 10월 23일
Hi, I have the same issue with the Simulink model in External run mode for Matlab 2018a. Were you able to find a solution? Some constants are tunable and some are not. And I just copy/paste blocks
Thomas Marullo
2021년 10월 23일
Mike Buba
2021년 10월 24일
I noticed the not tunable constants were directly or indirectly, via subtract block (reference - feedback), connected to the PID Controller block.

When I implemented my PI block (similar to as it is under the PID Controller's mask), I could tune them.
답변 (1개)
Sebastian Castro
2015년 5월 14일
0 개 추천
Are those constant blocks using hard-coded numerical values or are they variables (either numeric or Simulink.Parameter objects?)
- Sebastian
댓글 수: 2
Thomas Marullo
2015년 5월 14일
편집: Thomas Marullo
2015년 5월 14일
Sebastian Castro
2015년 5월 14일
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?
카테고리
도움말 센터 및 File Exchange에서 Event Functions에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
