Book a Demo

Author Topic: State-chart execute do operation doesn't work  (Read 13509 times)

blabla

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
State-chart execute do operation doesn't work
« on: May 22, 2015, 05:03:44 pm »
Hello
I want to execute all the time an operation with the action do.
I use this to count up something. Here is my code in the section Behaviour.

Code: [Select]
sim.T_WTO = sim.T_WTO+1;
Trace("time = "+ sim.T_WTO );

first time the code will be execute, but after the first run the operation will be not execute again. ??? may be someone can help why it doesn't work

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: State-chart execute do operation doesn't work
« Reply #1 on: May 25, 2015, 08:55:53 am »
My understanding is that a do operation is executed once on entry to the state. When it completes it sends a completion event to the state machine. It can also be interrupted by leaving the state.

What it doesn't do, is loop.