MATLAB: Does the Inport of the Compare to Constant block inherit its data type from the data type specified for its output in Simulink 7.2 (R2008b)

simulink

When I connect an Inport block to the Compare to Constant block, the incoming signal is set to boolean by default. However, I expect the incoming signal to be double since the number specified in the dialog box of the Compare to Constant block is a double.

Best Answer

This behavior is due to the data type propagation rules in Simulink 7.2 (R2008b).
As a workaround, specify the data type of the Inport block.