Data Type Propagation block doesn't work with Boolean data type

조회 수: 9 (최근 30일)
M. Saad
M. Saad 2019년 5월 24일
댓글: M. Saad 2019년 6월 13일
Data Type Propagation block doesn't work when the reference input is of Boolean data type. In the figure below it is propagating uint8 but the reference is boolean
data type prop error.PNG
Another similar error
data type prop error2.PNG
But it works fine with the other data types. Unfortunately, I can't see the mistake here.

답변 (1개)

Raghunandan V
Raghunandan V 2019년 6월 6일
Hi, The error says "The 3rd input for Data Type Propogation block has to be uint8 but you are feeding it Boolean"
Please post the image of mask of Data Type Propogation block
  댓글 수: 2
M. Saad
M. Saad 2019년 6월 13일
I believe the settings are fine. There's some problem with Data Propagation Block when the data type is Boolean. Even the Simulink built-in block Extract Bits (also uses DTP blocks) gives the same error when the output is a single bit (Boolean data type).

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

카테고리

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

제품


릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by