Single use Simulink Switch

조회 수: 20 (최근 30일)
Matthew Enright
Matthew Enright 2016년 7월 11일
답변: Xiaojie Tao 2024년 5월 13일
Hey guys,
I'm new to these forums and having a bit of trouble with Simulink which I hope someone can help me with. I'm trying to create a single use switch that reacts to an input by switching something on when the input reaches a certain point but then stays on regardless of what the input then does.
For example: The input is an objects speed and when said objects speed goes above 100 it switches a light on. this light then stays on regardless of the changes in speed of the object i.e. if it goes below 100 it stays on and then if it again goes above 100 it still stays on, the light stays on until the simulation is terminated or reset.
My attempts previously have involved memory blocks and timers but I can't seem to make the switch stay permanently on once it's triggered, essentially I want the functionality of the manual switch but trigger-able by the simulation itself. Unfortunately I am also limited to using R2009a due to the hardware the simulation runs on.
Thanks in advance!

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2016년 7월 11일
  댓글 수: 2
Matthew Enright
Matthew Enright 2016년 7월 12일
thank you! This makes everything I made far too overcomplicated.
Quazi Hussain
Quazi Hussain 2019년 3월 27일
Excellent! Helped me a lot at my work. Thanks Azzi.

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

추가 답변 (2개)

Mohit Kumar
Mohit Kumar 2019년 5월 13일
That Realy helped me a lot in my simulation...Thank you so much Azzi..

Xiaojie Tao
Xiaojie Tao 2024년 5월 13일
Azzi made my life easier

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by