question

Cenk ZR avatar image
0 Likes"
Cenk ZR asked Cenk ZR commented

How to wait until the condition is met ?

Hello,

I have a simple model with a source, single queue, single processor and a sink. When items enter the queue, they got a label called "ERD". Then, I want my operator to load the item from the queue and continue if the time of the model is bigger or equal than ERD. If not, I want my operator to wait until the time becomes bigger or equal than ERD. Therefore, after assigning labels, I put a conditional decide that checks if " Model.time >= token.ERD", if it is true, operator starts loading. If it is not true, I thought of using a wait for event object but could not make waiting until Model.time >= token.ERD . If someone can help me with this issue, I would be appreciated. Thank you very much.

I am also attaching my flexsim file in case someone wants to check it.

ex.fsm

FlexSim 19.0.8
wait for eventdecideconditional decidewaitingwait until
ex.fsm (31.9 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

Mischa Spelt avatar image
0 Likes"
Mischa Spelt answered Cenk ZR commented

Hi Cenk ZR,

Wait For Event is especially useful when you don't know when exactly the event is going to happen.

If you want to wait until a specified time, it's better to use a Delay activity with a delay of

token.ERD - Model.time
· 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.

Cenk ZR avatar image Cenk ZR commented ·

Thank you very much @Mischa Spelt .

0 Likes 0 ·