How to check the outputs of the Incremental Shaft Encoder in Simulink?

조회 수: 10 (최근 30일)
There is a problem coming in checking the outputs of the incremental shaft encoder in Simulink.
  댓글 수: 4
Ameer Hamza
Ameer Hamza 2020년 3월 8일
Are you reading the values from some external hardware? Can you share the simple model which you are trying to run?
Ayush Srivastava
Ayush Srivastava 2020년 3월 8일
In this File the problem is coming in the connection.

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

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 3월 8일
Since you are using blocks from simscape multibody, which have different signals as compared to normal signals of Simulink. You cannot connect signals from two different types with each other directly. You need to add some appropriate blocks to make the signals compatible. See the attached simulink file for the example on how to connect these two signals.
  댓글 수: 11
Ameer Hamza
Ameer Hamza 2020년 3월 24일
Ayush, I am nor sure what is causing this issue here. This problem requires knowledge about the working of DC motor and its mathematical model, and I don't have much experience with it. However, I can see that this model uses a discontinuous signal, such as PWM signal, encoder, and decoder, which can cause difficulties for the Simulink solver (Also obvious from slow simulation speed). I have attached a revised model by removing these blocks and replacing them with equivalent continuous blocks. This equivalent block may not be helpful for your purpose, but it gives a general idea about how to handle such issues in Simulink.
Ayush Srivastava
Ayush Srivastava 2020년 3월 27일
But my physical model also comprises the components that I have attached in the previous file. So, I can't remove these components.

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

추가 답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by