Is it possible to create a semi-automatic button?

1 次查看(过去 30 天)
Hello everyone !
For a project I use the slider switch from the dashboard library of Simulink. I linked this slider switch to a constant but is it possible to make this button semi-automatic?
I want to be able to activate it manually (if I change the switch manually then the constant = 1) and i also want it to be automatic for a certain condition (if this condition happens then the slider switch is back to off).
I was thinking in order to do that I need to have access to the code of the switch and modify it but I know it's not possible to see the code of a block in Simulink.
If you have any ideas please let me know,
Thank you,
Eloise

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Control Simulations with Interactive Displays 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by