MATLAB: Do the boolean signals appear as a double data type in Simulink 7.4 (R2009b)

booleandoublesignalsimulink

Some of the boolean signals in my model are always treated as doubles, which may cause issues if downstream blocks expect the input to be boolean. Even if I place Data Type Conversion blocks in the correct place with "Output data type" set to "boolean", the signals are still treated as doubles.

Best Answer

This may be due to an incorrect Fixed-Point setting in the model.
To check this setting, go to Tools > Fixed-Point > Fixed-Point Tool, and find the option called "Data type override". Ensure that this is set to "Use local settings", and not "True doubles".