DSP Blockset | ![]() ![]() |
Effects of Enabling and Disabling Boolean Support
By default, Simulink enables Boolean support. When you leave Boolean support enabled, all Boolean-supporting output ports always output the Boolean data type.
In some cases, you may want to override the Simulink default and disable Boolean support. For example, you may have a model that you created before Boolean support existed. Leaving the Boolean support enabled in this model may cause some blocks that used to output the double-precision data type to output the Boolean data type. If the introduction of the Boolean data type breaks your model, you can fix the problem by disabling Boolean support.
The following table describes the effects of enabling and disabling Boolean support. Note that when you disable Boolean support, some Boolean-supporting output ports output double-precision data.
Type of Boolean-Supporting Output Port |
Effect of Enabling Boolean Support (Default) |
Effect of Disabling Boolean Support |
|
Output is always Boolean, regardless of the input data type. |
|
With a corresponding block parameter for setting output data type to Logical or Boolean (for example, in the N-Sample Enable block) |
Output is always Boolean, regardless of whether you set the output port to Logical or Boolean. |
![]() | Lists of Blocks Supporting Boolean Inputs or Outputs | Steps to Disabling Boolean Support | ![]() |