Jump to content
Wikipedia The Free Encyclopedia

Stateflow

From Wikipedia, the free encyclopedia
Stateflow
Control logic for an automatic transmission system
Developer MathWorks
Stable release
R2018b / September 12, 2018; 7 years ago (2018年09月12日)
Preview release
R2018b / June 14, 2018; 7 years ago (2018年06月14日)
Operating system Windows, macOS, Linux [1]
Platform x64
Type Application software
License Proprietary
WebsiteStateflow product page

Stateflow (developed by MathWorks) is a control logic tool used to model reactive systems via state machines and flow charts within a Simulink model. Stateflow uses a variant of the finite-state machine notation established by David Harel, enabling the representation of hierarchy, parallelism and history within a state chart.[2] [3] Stateflow also provides state transition tables and truth tables.

Common uses

[edit ]

Stateflow is generally used to specify the discrete controller in the model of a hybrid system where the continuous dynamics (i.e., the behavior of the plant and environment) are specified using Simulink.[4] [5]

Specific applications for Stateflow include:

  • Mode logic, where each discrete mode of a system is represented by a state[6]
  • Fault management, where the Stateflow chart is used to control how the system responds to faults and failures within a system[7]
  • Task scheduling, where the Stateflow chart is used to schedule when specific tasks occur, either within the Stateflow chart or within the overall Simulink model[8]

Extensions

[edit ]

A number of MathWorks and third-party tools can be used with Stateflow to validate the design and generate code. For example, Simulink Verification and Validation, a MathWorks tool, can be used to check for requirements traceability and model coverage analysis. Other add-on code generation tools can be used to automatically generate C, C++, HDL, and PLC code for implementation on embedded systems.

References

[edit ]

AltStyle によって変換されたページ (->オリジナル) /