Target Language Compiler    

Stateflow Record

Stateflow library charts contained within your model can be multiinstanced, meaning that more than one instance of the same library chart appears in your model. The Stateflow record contains one Chart record for each unique library chart. Each Chart record contains the block references to the chart.This record is used by the Real-Time Workshop/Stateflow code generator tools to generate code that is reusable among all instances of a library chart. Note that when generating code that will use dynamic memory allocation (e.g., grt_malloc), all Stateflow charts are treated as multiinstanced to allow reuse of the chart code.

Table A-25: Model.rtw Stateflow Record
Variable/Record Name
Description
SFLibraryNames {

Only written if Stateflow charts exist in the model.

  NumUniqueCharts
Number of Chart records.
  Chart {
Record for a Stateflow library chart.
    Name
Name of the Stateflow library chart.
    ReferencedBy
An N-by-2 matrix. Each row specifies a system and block pair that identifies a instance of the library chart.
  }

}


  System Record Model Checksums