필터 지우기
필터 지우기

Nested enablement subsystems with two childs

조회 수: 3 (최근 30일)
Mohammad
Mohammad 2023년 10월 11일
편집: Mohammad 2023년 10월 12일
I see below link that for nested subsystems whose Enable blocks have different parameter settings, the settings for the child subsystem override the settings inherited from the parent subsystem.
But what if i have two child subsystems with different settings, say one of them with state when enabled set to "reset" and for the other with state when enabled set to "held" and for the parent subsystem with state when enabled set to "reset".
If the parent subsystem disabled and enabled back, how do the childs reset/hold states?

채택된 답변

Ayush Gupta
Ayush Gupta 2023년 10월 11일
Hi Mohammad,
According to the documentation you provided, when a parent subsystem is disabled and then enabled again, the settings for the child subsystems override the settings inherited from the parent. In your case, if the parent subsystem has the state when enabled set to "reset" and you have two child subsystems with different settings ("reset" and "held"), the following behavior would occur:
- When the parent subsystem is disabled and then enabled again, the child subsystem with the "reset" setting will reset its state as specified.
- The child subsystem with the "held" setting will retain its state since it overrides the setting inherited from the parent subsystem.
In other words, each child subsystem will maintain its individual state setting when the parent subsystem is enabled again.
  댓글 수: 1
Mohammad
Mohammad 2023년 10월 12일
편집: Mohammad 2023년 10월 12일
If I disable and enable a parent enablement subsystem does it also reset the child enablement subsystem (even though the child's trigger signal is still true)? Assume both subsystems are set to "reset"

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Subsystems에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by