Using Simulink Previous page   Next Page

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 Implement logic signals as boolean data option on the Optimization panel of the Configuration Parameters dialog box (see The options are typically to do nothing or to display a warning or an error message (see "Diagnosing Simulation Errors).

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 the Data Type Conversion block to perform such conversions.


Previous page  Data Typing Rules Typecasting Parameters Next page

© 1994-2005 The MathWorks, Inc.