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!