question

Patrick Zweekhorst avatar image
0 Likes"
Patrick Zweekhorst asked Jordan Johnson commented

Tracked variable rounding problem

Hi,

In the attached example model a kinetic tracked variable is created with a rate of 1. The token then enters a wait for event activity that waits for the tracked variable to change to or trough the value 1. After 1 second the rate is set to 0.

The tracked variable is at value 1 now, but the token did not fall out of the wait for event.
It looks like when the rate is set to 0 that the event is removed from the event list, although the event would have fired at the same time.

The attached model is a small sample model for a big model where we noticed the same problem.

Would you classify this as a bug? Or is there maybe a work around for now?

Thank you in advance,

Patrick

KineticLevelCrossEvent.fsm

FlexSim 24.0.1
wait for eventtrackedvariabletiming
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Jeanette F avatar image
0 Likes"
Jeanette F answered Jordan Johnson commented

Hello @Patrick Zweekhorst,

Placing a Breathe activity before setting the rate to 0 fixes the timing issue in your demo model. Is the same true for you original model? 1709067814486.png

I will send this into the development team. I think this is a bug.


1709067814486.png (84.2 KiB)
· 4
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.