Reset input function options in the Encoder Input block

조회 수: 3 (최근 30일)
Cecilia De Vicariis
Cecilia De Vicariis 2021년 1월 28일
답변: Jan Houska 2021년 2월 16일
We have a quadrature encoder connected to a multifunction DAQ. We are using the Simulink Desktop Real-Time Toolbox and we want to automatically reset the encoder using the index signal of the encoder.
We know that in our encoder the index signal ticks in the portion of encoder cycle when both A and B signals are high.
Therefore, under the reset input function option of the Encoder input block we set option 5 ‘reset on A,B high’. However, compilation fails with the following error
Error reported by S-function ‘sldrtei’ in <Encoders Test/Encoder Input>:
Encoder Input reset input mode index must be between 1 and 3.
No error occurs if we choose one of the first three options. But these options prevent proper encoder reset.
Why would option 4 prevent compilation of our application? What should we do?
We use a National Instruments PCIe-6343 board.

채택된 답변

Jan Houska
Jan Houska 2021년 2월 16일
Hi Cecilia,
there is a bug in the Encoder Input block causing it to fail to recognize options 4 and 5 for some boards, including the NI PCIe-63xx series. Please contact technical support to obtain a fix.
Jan

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Target Computer Setup에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by