AnswerHub Upload Issue
Our AnswerHub community currently has a bug that prevents you from attaching your model or other files to your questions. AnswerHub is aware of this issue and they are working on a fix. Until we receive their patch, you can upload your models and other files to FlexSim's file share site. Include the file name in your question so that we know which upload to reference.

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.

Thank you very much @Mischa Spelt .

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.