How to wait until the condition is met ?

How to wait until the condition is met ?

cenk_zr
Not applicable
22 Views
2 Replies
Message 1 of 3

How to wait until the condition is met ?

cenk_zr
Not applicable

[ FlexSim 19.0.8 ]

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

0 Likes
Accepted solutions (1)
23 Views
2 Replies
Replies (2)
Message 2 of 3

mischa_spelt
Advisor
Advisor
Accepted solution

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
0 Likes
Message 3 of 3

cenk_zr
Not applicable

Thank you very much @Mischa Spelt .

0 Likes