Trouble with Enable subsystem.
3 次查看(过去 30 天)
显示 更早的评论
Hello Guys, I am implementing a Simulink structure which uses Enable Subsystems. Based on a certain condition either the value of 1 of -1 goes into the Enabled input. When the input is -1, the subsystem is disabled. However, as soon as the input is 1, the Enable is is always set at 1 and it then holds this value and hence the subsystem always computes. I don't want this to happen. I want the Enabled subsystem not to run when the value is -1. How do I do this? Here are some pictures to clarify.
This is the switch I'm using to trigger:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149160/image.jpeg)
This is the output of the switch:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149162/image.jpeg)
Here is the output of the Enable:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149164/image.jpeg)
I don't understand why its always 1.
Any suggestions? Thanks, Prakash
0 个评论
采纳的回答
Titus Edelhofer
2015-9-17
Hi Prakash,
no, the enable system does not compute when the enable signal is not positive. But the outport hold the last computed value. Go into the enable subsystem, open the outport and switch "Output when disabled" from the default "held" to "reset".
Titus
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Subsystems 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!