question

Kadircan T avatar image
0 Likes"
Kadircan T asked Jacob W2 commented

How to Release Items from Queue to Sink at Specific Times?

Hello,

In my simulation, I send products from a Queue to a Sink as the final step. However, I need to control the release timing based on specific hours.

For example:

  • Items should wait in the Queue until 3:00 AM and then be released.
  • Any items arriving after 3:00 AM should wait in the Queue again and be released at 2:00 PM instead.
  • This cycle should continue throughout the simulation.

How can I implement this logic in FlexSim?

Thank you.

FlexSim 24.0.2
queuetimedelay
· 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.

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Kadircan T commented

releaseitem is a command to iniate a transfer of items from an object. Obviously the item must wait in such an object. You can let wait an item by sending it to a non-existing output port number or a to a port value of -1. In realseitem command you specify an available outpu port number.

You need this timed, then you create an event in an on message trigger by sending a delayed message to this object.

· 5
5 |100000

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