What is the best way to implement Class Diagrams in Simulink&Stateflow ? What is the equivalent of classes representation in Stateflow?
6 views (last 30 days)
Show older comments
Hey Matlab Community,
What is the best way to implement Class Diagrams in Simulink&Stateflow ?
What ist the equivalent of classes representation in Stateflow?
I want to create several instances of the same object for example: Instance green, red and yellow of the object SMLamp which also includes a StateMachine. Each of the 4 blocks in the following image also includes a StateMachine.
My task is to transform this UML class based model in the Stateflow &Simulink environment.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/159565/image.png)
SMTrafficLight - Block
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/159567/image.jpeg)
SMLamp -Block
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/159570/image.jpeg)
0 Comments
Answers (1)
sam0037
on 13 Apr 2016
Hi,
This link talks about Hybrid Software Development with Simulink and UML Tools. This video might be a good starting point to approach this issue.
Hope this helps. All the best!!!
See Also
Categories
Find more on Complex Logic in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!