This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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?