CoffeeDonut
CoffeeDonut

Reputation: 3

Visualizing a Stateflow Model

I have a pretty simple MATLAB stateflow model that I would like to visualize. I don't need anything fancy - even if I could just display a different image based on which substate a parallel state is in. Does anyone have any suggestions about what I can use to accomplish this? I've been looking around and all I could find was the 3D world builder with simulink, but I'm not even sure how I would connect that to stateflow.

Thanks.

Upvotes: 0

Views: 184

Answers (1)

Phil Goddard
Phil Goddard

Reputation: 10772

From the statechart you'll need to output a signal indicating which state the models is in. This can be achieved by having an entry action for the state that sets a variable to a given value.

Then you can display the signal in the same way as any Simulink signal - for instance using a Scope, a Display, or any one of the Dashboard blocks.

Upvotes: 0

Related Questions