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?

5 次查看(过去 30 天)
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 个评论
Kaustubha Govind
Kaustubha Govind 2013-2-27
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.

类别

Help CenterFile Exchange 中查找有关 Schedule Model Components 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by