Sparx Systems Forum

Discussion => General Board => Topic started by: bknoth2 on December 19, 2017, 03:42:21 pm

Title: C++ State Machine Code Generation Example?
Post by: bknoth2 on December 19, 2017, 03:42:21 pm
I'm trying to generate C++ code from a state machine. I don't know how to set up triggers with events and guards so that generated code will compile. Is there an example around (or really clear documentation)?

I'm using the system engineering version (13.5).

Thanks for any help

Bruce

Title: Re: C++ State Machine Code Generation Example?
Post by: Dermot on December 20, 2017, 10:50:54 am
There are examples of compilable Executable State Machines in the EAExample model under:
- Example Model.Model Simulation.Executable State Machine
See also the webinar:
http://www.sparxsystems.com/resources/webinar/systems-engineering/model-simulation/state-machines/audio-player/index.html