DSP Blockset | ![]() ![]() |
Steps to Disabling Boolean Support
To disable Boolean data type support in a particular model, clear the Boolean-enabling simulation parameter in the model by completing the following:
You can also set Simulink simulation preferences so that all new models you create have Boolean support disabled. For more information, see the topic on setting advanced Simulink preferences in the Simulink documentation.
Step 1: Open the Simulation Parameters Dialog Box
In the model for which you want to enable Boolean data type support, open the Simulation Parameters dialog box by selecting the Simulation menu in your model and then selecting Simulation parameters.... as shown in Figure .
Opening the Simulation Parameters Dialog Box
The following figure illustrates the Simulation Parameters dialog box with the appropriate settings for DSP simulations (note the discrete Fixed-step solver setting).
Step 2: Disable the Boolean Data Type in the Advanced Tab
Click the Advanced tab of the Simulation Parameters dialog, set the Optimizations parameter to Boolean logic signals, and set the Action check box to Off, as shown in Figure . Click OK.
You have now disabled Boolean support in your model; for certain cases, output ports that support the Boolean data type will output double-precision data rather than Boolean data, as explained in Effects of Enabling and Disabling Boolean Support.
Settings for Disabling the Boolean Data Type
Step 3: (Optional) Verify Data Types of Signals
Check the data types of the signals in the model by turning on the automatic labeling of signal data types (see Viewing Data Types of Signals In Models.) Some Boolean-supporting output ports might have output signals labeled double
rather than boolean
, depending on whether the inputs to the block are double-precision (see Effects of Enabling and Disabling Boolean Support).
If you do not see the data type labels after turning them on, you may have to refresh the model diagram by selecting the Edit menu in your model and then selecting Update diagram.
![]() | Effects of Enabling and Disabling Boolean Support | Code Generation Support | ![]() |