1
Suggestions and Requests / Simulate State Charts & Activity Diagrams
« on: October 23, 2009, 02:06:10 am »
I want to pass data and events from one state chart to another over a port/flow port. I created a state chart in one block/class that transmits an event/data. I want to receive the data in another block/class that has its own state chart.
Does anyone have some code they can share to pass data and events across a flow port from one block to another?
Also, the current code generator for state charts creates an infinite loop around the state chart code. If I have multiple state charts running in parallel and each one is in an infinite loop, my CPU time is all used up. Does anyone have a suggestion on a better way to execute the state machines? Should I remove the loop and create a class that acts as an executive? What would you do?
Does anyone have some code they can share to pass data and events across a flow port from one block to another?
Also, the current code generator for state charts creates an infinite loop around the state chart code. If I have multiple state charts running in parallel and each one is in an infinite loop, my CPU time is all used up. Does anyone have a suggestion on a better way to execute the state machines? Should I remove the loop and create a class that acts as an executive? What would you do?

