Author Topic: C++ State Machine Code Generation Example?  (Read 1044 times)

bknoth2

  • EA User
  • **
  • Posts: 63
  • Karma: +0/-0
    • View Profile
C++ State Machine Code Generation Example?
« 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


Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 589
  • Karma: +7/-0
    • View Profile
Re: C++ State Machine Code Generation Example?
« Reply #1 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