I need something like this. This is done manually with a pulse generator, but I need it to be conditioned by the orange signal.
Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Is there a switch that turns on for a specific amount of time? That does not depend on the system's time.
조회 수: 1 (최근 30일)
이전 댓글 표시
Is there a switch in simulink that turns on for a specific amount of time then turns off?
For context, the orange signal runs for 1s and I want a switch that becomes closed when the orange signal < 0 and sends a yellow signal that runs for 0.5s.
Currently i am using a switch that is set at >= -0.00001 (when the signal goes down)
Any help is appreciated! Thank you!
댓글 수: 1
답변 (1개)
Shivam Sardana
2019년 5월 23일
An Enabled Subsystem can be used for your requirement. Whenever orange signal is less than 0, an enabler can be set to 1 and send to Enabled Subsystem which runs yellow signal for 0.5 seconds. A Switch can be used whose output can be passed to Scope.
댓글 수: 1
이 질문은 마감되었습니다.
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!