Questions tagged [stateflow]

StateFlow is a toolbox from MathWorks for development of state machines

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 real time Workshop).

Advantages compared to software-only tooling (like IBM Rhapsody):

  • use with hardware (in the loop)
  • seemless integration with Simulink

Disadvantages compared to software-only tooling:

  • cost for code generation

Links:

81 questions
0
votes
1 answer

Multiple inputs to switches in MATLAB Simulink Stateflow

I want to model a turning light from a car. To this end, I need to specify the user input for the trigger. So far I have used two binary switches - one for the turning light right and one for the turning light left. But this does not satisfy my…
Icky
  • 1,055
  • 1
  • 12
  • 30
0
votes
1 answer

Generate code Simulink/Stateflow

I generate C++ code using Simulink; Simulink builds file.exe but it doesn't run. The problem is: the program can't start because libmx.dill is missing from your computer. Try reinstalling the program to fix this problem. By the way the file…
Deviltrigger
  • 63
  • 2
  • 10
0
votes
2 answers

How to change the value of simulink block during the simulation?

i have a constant block in a simulink model; i would like to change its value during the simulation when a particular event occurred in a stateflow chart. how can i do it?
Deviltrigger
  • 63
  • 2
  • 10
0
votes
1 answer

How to generate state flow diagrams from XML in Java?

I created webservice and I return the Response in XML format. What is the best Tool to generate State Flow diagram from XML file.? Free tools or libraries? Guide me!
Ameer
  • 612
  • 1
  • 11
  • 27
0
votes
2 answers

Modeling Microwave in Stateflow-Simulink - How to give cooking time as an input from the simulink?

I am trying to model a microwave in MATLAB's stateflow module. I have modeled states like on-off (microwave can be turned on/off). In 'on' state, I have sub-states like 'door open', 'door close' and 'cooking'. I have set conditions on transitions…
ShriPat
  • 3
  • 2
-1
votes
1 answer

Simulink Stateflow: add invariants to state

Hi I am creating a hybrid automata model using Stateflow. I was wondering if it's is possible to add invariants to a state?
Addie
  • 31
  • 1
  • 1
  • 4
1 2 3 4 5
6