필터 지우기
필터 지우기

How to count number of pulses in a signal in Simulink

조회 수: 32 (최근 30일)
aakash dewangan
aakash dewangan 2021년 9월 14일
댓글: aakash dewangan 2024년 3월 31일
I have a signal (containing pulses) comming out of an encoder of a motor. I want to count the number of pulses present in the signal. The objective is to read the speed of the motor using encoder data. So, i am counting pulses, which i will be using to calculate the speed of motor. Please let me know How can I do this is simulink?
I used "Detect Increase" block, but it does't give me count for number of pulses. Since pulses are in large number so I can not count it manualy.

채택된 답변

aakash dewangan
aakash dewangan 2023년 10월 25일
편집: aakash dewangan 2024년 3월 31일
Hi,
I used 'encoder' block from 'simulink support packege for arduino'. The block is available in the versions 2021b and above.
Thanks
  댓글 수: 2
Jobin Geevarghese Thampi
Jobin Geevarghese Thampi 2024년 3월 12일
But does that count the number of pulses?.
aakash dewangan
aakash dewangan 2024년 3월 31일
Yes, It does, You need to judiciously choose the sampling time in that block.

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

추가 답변 (1개)

Paul
Paul 2021년 9월 14일
Similar problem addressed in this link.

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by