Masking Of Stateflow Blocks

This example shows a model that demonstrates a basic temperature control simulation that allows you to enter the temperatures and the power of the air conditioner that you want to use.

The Stateflow blocks, Stateflow Chart, Truth Table Block and the State Transition Table can be directly masked to provide the mask dialog that specifies parameters of the system.

The Control Mechanism

The temperature control is a simple mechanism which turns an AC on when the temperature goes above a certain value and turns off when the temperature is below the desired temperature.


The mask can also be created on a library model to be used by multiple instances.


Simulate the model to see the results

Was this topic helpful?