question

Patrick Zweekhorst avatar image
0 Likes"
Patrick Zweekhorst asked Joseph Gillespie answered

Kinetic tracked variable does not schedule a new event

Hi,

I found a problem with a kinetic tracked variable. When I set the rate of the tracked variable at some value and I add a wait for event activity that waits before some level is reached an event is scheduled. This is done correctly, but when I change the value of the tracked variable at some other point in the process flow the scheduled event is not updated. The rate does not change during the simulation, but I change the current value of the tracked variable at some moments, but the event time is not updated.

One way to work around this was to set the rate at 0, change the value of the tracked variable and then set the rate back. It would however be nice that the event time would be updated also when the value of the tracked variable is changed.

Attached is an example model where I added the work around in the "Dec nrOfCans" activity.
Is it possible to fix when the scheduled event is updated?

Thanks

Patrick

testmodelkintracked.fsm

FlexSim 19.0.3
wait for eventkinetic tracked variable
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

·
Joseph Gillespie avatar image
0 Likes"
Joseph Gillespie answered

@Patrick Zweekhorst

See my answer to your other question: Kinetic tracked var on change does not fire.

Since the problem is a bug, I think that you should just use your workaround. While listening for changes in the value of kinetic variables doesn't work, listening for rate changes still does.

5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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