Encoder block in Simulink not resetting properly
Ältere Kommentare anzeigen
Since the R2021b, Simulink hardware support for Arduino introduced also the rotary Encoder block: https://www.mathworks.com/help/supportpkg/arduino/ref/encodersensors.html
This block offers an ability to reset counter either regularly at sample time or using an external signal. Unfortunately, external signal reset simply doesn't work. It resets the counter in regular intervals, regardless of the reset input state. To me, it seems like a bug, but maybe I didn't catch something.
As you can see from the following image, Encoder is counting (blue line) regardless of the state at the Reset input (yellow), but then it's zeroing itself regularly.

I am using R2023a, Simulink Support Package for Arduino Hardware with Arduino UNO, and operating in Connected IO mode
Any advices, please?
Akzeptierte Antwort
Weitere Antworten (1)
Cris LaPierre
am 16 Jun. 2023
1 Stimme
I get the same behavior when I test it. I would suggest reporting this here: https://www.mathworks.com/support/contact_us.html
1 Kommentar
Richard Balogh
am 16 Jun. 2023
Kategorien
Mehr zu Arduino Hardware finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

