I wanna trigger a subsystem when it sees rising edge for the first time and disable the subsystem permanently when it sees the falling edge for the first time. How can we achieve this using Enable & triggered subsystems block?

I wanna trigger a subsystem when it sees rising edge for the first time and disable the subsystem permanently when it sees the falling edge for the first time. How can we achieve this using Enable & triggered subsystems block? Is there any other method or block to achieve the same?
Thanks

댓글 수: 2

Are you open to use stateflow? Implementing complex logical requirements are much simpler with Stateflow.
If you'd like to continue using Triggered Subsystem, you will need to construct a pulse signal for the trigger signal, which only rises once. If it never has a rising edge again, the subsystem will never run again.

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

답변 (1개)

Ryan G
Ryan G 2013년 2월 27일
편집: Ryan G 2013년 2월 27일
This actually isn't to tough to implement with an extra enabled subsystem. Long term, if you have a lot of logic controlling the system, stateflow is the proper choice.

카테고리

도움말 센터 및 File Exchange에서 Schedule Model Components에 대해 자세히 알아보기

제품

질문:

2013년 2월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by