StateFlow is a toolbox from MathWorks for development of state machines. For questions regarding the StateFlow interface from Kotlin's kotlinx.coroutines library, use the [kotlin-stateflow] tag instead.
Stateflow is an toolbox (extension) of Matlab from Mathworks. It is a commercial, and proprietary toolset.
Generally, Stateflow extends Simulink with the ability to design and test state machines. It is commonly used in control design, where algorithms can be either MATLAB scripts & formulas, Simulink blocks or embedded code (in the form of so-called S-functions).
Code generation is supported on the host platform, but for target code additional tools are required (such as Simulink Real-Time (previously known as real time Workshop) or Embedded Coder).
Advantages compared to software-only tooling (like IBM Rhapsody):
- use with hardware (in the loop)
- seamless integration with Simulink
Disadvantages compared to software-only tooling:
- high license cost for code generation
Links:
- Official web page.