question

Andrea F avatar image
0 Likes"
Andrea F asked Andrea F commented

Simulation time stop when the token enter the sink

Hello everyone,

I have a problem on the simulation running time. When all the orders are finished and the token enter the sink activity my simulation keeps running. How can i stop the simulation running time after the token entered the sink?

Final Version.fsm

FlexSim 19.1.2
warehousesimulationlogistics
final-version.fsm (112.2 KiB)
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 Andrea F commented

Hello @Andrea F,

You can create an Event Triggered Source that creates a token when a token enters the sink. Then your newly created token will use the custom code activity to stop the model run.

1629428917871.png

1629428898804.png

final-version_1.fsm


1629428898804.png (28.3 KiB)
1629428917871.png (26.6 KiB)
final-version-1.fsm (113.8 KiB)
· 1
5 |100000

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

Andrea F avatar image Andrea F commented ·
Thank you very much @Jeanette F
0 Likes 0 ·

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.