triggering a pulse signal
조회 수: 59 (최근 30일)
이전 댓글 표시
Goodmorning to all,
I would like to create a simulink model where a boolean true triggers a pulse signal that lasts a precise n. of periods, even if in the meanwhile the trigger goes off. Does anyone know how to do it?
댓글 수: 2
Nagasai Bharat
2021년 5월 4일
Hi,
Do you mean a single pules with period "n" or n pulses of a particular period are to be generated when the boolean goes true?
답변 (1개)
Nagasai Bharat
2021년 5월 5일
Hi,
I have tried a logic with both enable and triggered subsystems and it seems to work for your use case.
I have attached the Simulink file.
Here in the Triggered subsystem I am trying to get the point when your true signal comes and then this would be passed into the Enabled subsystem where a Counter (Counts the rising edges of the pulse passed to it) is implement with a Switch Block to discards the pulses greater than the number specified.
참고 항목
카테고리
Help Center 및 File Exchange에서 Sources에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!