How to check the outputs of the Incremental Shaft Encoder in Simulink?
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ayush Srivastava
le 8 Mar 2020
Commenté : Ayush Srivastava
le 27 Mar 2020
There is a problem coming in checking the outputs of the incremental shaft encoder in Simulink.
4 commentaires
Ameer Hamza
le 8 Mar 2020
Are you reading the values from some external hardware? Can you share the simple model which you are trying to run?
Réponse acceptée
Ameer Hamza
le 8 Mar 2020
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 commentaires
Ameer Hamza
le 24 Mar 2020
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.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Electrical Sensors dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

