Using Simulink    

Enabling Strict Boolean Type Checking

By default, Simulink detects but does not signal an error when it detects that double signals are connected to blocks that prefer boolean input. This ensures compatibility with models created by earlier versions of Simulink that support only double data type. You can enable strict Boolean type checking by clearing the Boolean logic signals option on the Advanced panel of the Simulation Parameters dialog box (see The Advanced Pane).

Typecasting Signals

Simulink displays an error whenever it detects that a signal is connected to a block that does not accept the signal's data type. If you want to create such a connection, you must explicitly typecast (convert) the signal to a type that the block does accept. You can use Simulink's Data Type Conversion block to perform such conversions.


  Data Typing Rules Typecasting Parameters