question

Haggai N avatar image
0 Likes"
Haggai N asked Joerg Vogel commented

Queue Holding

Is it possible for me to hold the flowitems in a queue for a period of time after 20 items flows into the queue?

For example, a show can only starts when there are 20 customers.

FlexSim 17.2.5
queuestatistics collectordelayhold
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
2 Likes"
Joerg Vogel answered Joerg Vogel commented

You close the output of the Queue in OnEntry Trigger

green plus icon Control > Close and Open Ports

  • Action: closeoutput
  • Object: current
  • Condition :
content(current) < 20

You add another template through the green plus icon in the template editor at same trigger.

Control > Close and Open Ports

  • Action: openoutput
  • Object: current
  • Condition :
content(current) >= 20
· 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.

Joerg Vogel avatar image Joerg Vogel commented ·

If you need the condition gets fulfilled only at special times you add a label at the queue and evaluate the label value in the condition.

content(current) <= 20 || myAddedLabelName == 1

You change the label value to 1 whenever you don't want that the minimum content hasn't any effect. If the minimum content must be evaluated you set label to a value different to 1.

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.