How to keep a boolean true value once it has been reached?
8 次查看(过去 30 天)
显示 更早的评论
Hello everyone,
I have a boolean output in my Simulink model:

I would like to keep the true value once it has been reached, because I need it for another input. So the output should look like this:

Is it possible to modify it in Simulink?
Kind regards,
Yudha
0 个评论
回答(1 个)
Jonas
2021-6-8
Use the Boolean signal to trigger a Triggered Subsystem which triggers on rising edge, which contains a Constant 'true' which connects to its output. Set the initial value of the output to 'false'.
The output of the Triggered Subsystem will now switch from 'false' to 'true', and the output will be held.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Schedule Model Components 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!