apply initial conditions to a subsystem
이전 댓글 표시
I want to apply an external initial condition to my resettable system, just like how it is possible with a integrator block. Anyone know how to do that?
답변 (1개)
Fangjun Jiang
2019년 11월 4일
0 개 추천
Use "Initialize Function" in library Simulink\User-Defined Functions.
댓글 수: 4
ariel bintang
2019년 11월 4일
Fangjun Jiang
2019년 11월 4일
Integrator is supported. Not sure why continuous State-Space is not supported. If dropping a continuous State-Space block, the StateWriter block seems to "see" it. I didn't try to see if it actually works.
ariel bintang
2019년 11월 4일
편집: ariel bintang
2019년 11월 4일
Fangjun Jiang
2019년 11월 5일
편집: Fangjun Jiang
2019년 11월 5일
No longer need to use "Resettable Subsyhstem"
- Construct your regular Subsystem with states
- Construct your reset logic to send a "reset" event, which trigs the "Reset Function"
- Inside your "Reset Function", construct those reset values and write to the states.
Take a look at the built-in demo models.
카테고리
도움말 센터 및 File Exchange에서 Event Functions에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
