time event behaviour issue in example "Statechart LightCtrl"

46 views
Skip to first unread message

CCoste

unread,
Aug 13, 2020, 12:45:53 PM8/13/20
to YAKINDU User
Hello,
On this example,

I was expecting that the timer of the state "Light On" would be initialized for each event "button"
It dasn't seem to be the case.
While simulating, the value of "Light On time event" always stays at 0


Is there any chance that I missed a config or defined a wrong preference ?
I run Yakindu 3.1.1 on Windows 10

I didn't find a clue reading tutorials
Par avance, merci

Thomas Kutz

unread,
Sep 3, 2020, 3:53:20 AM9/3/20
to YAKINDU User
Hi,

the value in the simulation view does not reflect the time of the time event. It is basically arbitrary and always 0 as far as I know.
Disregard the simulation view values, does the statechart behave as expected, i.e., does it take 5 seconds after button was re-raised to get to "Light Off" state?

You should also update your Statechart Tools to the current version 3.5.12.

Also, you might want to try the new version 4 (currently only in beta, but the official release is on its way). We have improved a lot of things in version 4, like the modeling editor, the possibility to import other statecharts, better event buffering, etc. 

Best regards,
Thomas

Christophe Costecalde

unread,
Sep 4, 2020, 5:06:52 AM9/4/20
to yakind...@googlegroups.com
Hello,

Thanks for the answer.
But no, the statechart does not behave as expected :
While clicking every second on "button", it doesn't change the duration of the state "Light on".
It seems like when the Timer is launched, it can't be forced to zéro while re-entering into state "Light on".
return to "Light off" occurs immediately after stopping from clicking on "button", when clicked over than 5 times (1 time per sec)

Moreover, in another statechart where the transition leads to another state, the timer seems to frozen (paused ?),
and not forced to zero while re-entering  into state "Light on".
In this case, the transition "after 5s" might be triggered after 2secs after last re-entering, instead of 5 expected

Thanks in advance
Christophe

--
You received this message because you are subscribed to the Google Groups "YAKINDU User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yakindu-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/yakindu-user/095e6eea-e9b9-4854-a333-d56f4147d701o%40googlegroups.com.

Christophe Costecalde

unread,
Sep 4, 2020, 5:31:09 AM9/4/20
to yakind...@googlegroups.com
This is the behavior I want :
I by-passed the problem using "every", and an explicit timer : "duree"
But it's less direct than the first solution, with "after" 

image.png
Best regards
Christophe

Thomas Kutz

unread,
Sep 4, 2020, 10:53:02 AM9/4/20
to YAKINDU User
I checked with the current version and it works as expected. Please download the most recent version, or update your Statechart Tools.
To unsubscribe from this group and stop receiving emails from it, send an email to yakind...@googlegroups.com.

Christophe Costecalde

unread,
Sep 5, 2020, 4:36:11 AM9/5/20
to yakind...@googlegroups.com
Problem solved by using the 3.5.12 version !!
bizarre ...

Thanks for your help
Please excuse my very bad english

Best regards
Christophe



To unsubscribe from this group and stop receiving emails from it, send an email to yakindu-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/yakindu-user/9019ca57-c847-4cc2-9537-1186c60fdccco%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages