How Discrete-Event Charts Differ from Stateflow Charts

Discrete Event Chart Properties

Discrete event chart properties allow you to specify how your chart interfaces with the Simulink® model.

Set Properties for a Chart

To specify properties for a single chart:

  1. Double-click a chart.

  2. Right-click an open area of the chart and select Properties.

    All charts provide general and documentation properties.

  3. Observe that the chart allows the configuration of only these properties on the General tab. It also supports the Fixed-point properties and Documentation tabs.

    • Name

    • Machine

    • Saturate on integer overflow

    • Create data for monitoring

    • Lock Editor


  • SimEvents® software supports only MATLAB® action language

  • SimEvents always supports variable-size arrays

Define Message (Entity) Input and Output

A discrete-event chart uses SimEvents entities the same way that Stateflow® software uses messages. As with Stateflow charts, you can add message (entity) input and output using the Stateflow Editor or Model Explorer. Based on the desired scope, select one of the following options:

ScopeMenu Option


Message (Entity) Input from Simulink


Message (Entity) Output from Simulink

Define Local Messages

As with Stateflow charts, you can define local messages for the discrete-event chart using the Stateflow Editor or Model Explorer. To add a local message for the discrete-event chart, select Chart > Add Other Elements > Local Message (Entity)....

Specify Message Properties

Discrete-event charts have this additional property for output messages and local messages:

Message Input Port PropertiesDescription
PriorityIf two message events occur at the same time, to decide which to process first, the discrete-event chart uses this priority. A smaller numeric value indicates a higher priority.

See Also

Related Topics