Need to measure time difference between two pulses
조회 수: 8 (최근 30일)
이전 댓글 표시
I have a signal which will give out series of pulses in various time intervals. I need to measure how many pulses are occuring per second.
Measuring pulse width of the inverted signal will also solve my problem.
How to measure Pulse Width of Signal in Simulink? Is there a block available to do that?
댓글 수: 0
답변 (1개)
Sumit Tandon
2012년 11월 20일
Couple of ways to do it would be:
1. Using a Triggered Subsytem block and drive a counter with that. The key here would be choosing appropriate trigger type - rising edge, falling edge, either, etc.
2. Using a MATLAB Function block with PERSISTENT variables as counters. Check value of signal inside the block and update the counters.
참고 항목
카테고리
Help Center 및 File Exchange에서 Switches and Breakers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!