MATLAB Answers

M. Saad
0

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

Asked by M. Saad
on 24 May 2019
Latest activity Commented on by M. Saad
on 13 Jun 2019
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.

  0 Comments

Sign in to comment.

1 Answer

Answer by Raghunandan V on 6 Jun 2019

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 Comments

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).

Sign in to comment.