Filter löschen
Filter löschen

How can I visualize a Stateflow model ?

1 Ansicht (letzte 30 Tage)
Tomas
Tomas am 25 Apr. 2014
Kommentiert: Tomas am 1 Mai 2014
Hello. I am new in Stateflow and i would like to ask a question.
I have made very simple model of traffic light which is made from four states. In each state there are just outputs (S=1 or S=0, 1 is GREEN and 0 is RED) and i wanna visualize it. Can you help me ? I am looking for the simpliest method, nothing complicating. For example, I will draw a crossing by myself, then I place a traffic lights and where there is S=1, the traffic light will be green.
Thanks
  2 Kommentare
Azzi Abdelmalek
Azzi Abdelmalek am 25 Apr. 2014
What do you want to visualize?
Tomas
Tomas am 25 Apr. 2014
I wanna visualize transitions of semaphores' signals, from red to green and from green to red.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Azzi Abdelmalek
Azzi Abdelmalek am 27 Apr. 2014
I don't think you can get those colors just by using Simulink. If you have a 3D world Editor, you can use a VRML Builder to draw whatever you want, and connect it to your stateflow model, and get any effect you want (color, sound, movement...)
  1 Kommentar
Tomas
Tomas am 1 Mai 2014
Can I change the color in figure ? I am drawing my own custom figure right now and by changing values in matlab workspace I'll make it possible.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Prepare Model Inputs and Outputs finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by