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

Myriam avatar image
0 Likes"
Myriam asked Jeanette F commented

wait for an event by condition

Hello,

I've created an object process flow, that triggers when a box covers a PE. Based on some conditions, the box stops or sinks. The box resumes when a model variable reaches a threshold. I've managed to resume the object after a time, but I'm don't know how to write a variable-based condition.


1648741561674.png

Thank you,

FlexSim 22.1.0
wait for eventconditional decide
1648741561674.png (89.5 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.

Jeanette F avatar image
0 Likes"
Jeanette F answered Jeanette F commented

Hello @Myriam Srdg

I wrote two examples of a decide conditionally examining a variable. One is a global variable. The other is a tracked variable.

Varaible_Based_Condition_JF.fsm


· 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.

Thank you both for the examples. I think I didn't express myself correctly or I'm not able to interpret them right. I achieved to make a decision based on a variable. What I'm struggling with if with resuming the item once the condition that made it stop changes. In the example that I upload, what I want to stop the object in the first PE and only resume it when the number of items between the PEs is less that 2.

varaible-based-condition-jf-ms.fsm

Thank you

0 Likes 0 ·

Hello @Myriam Srdg,

This will work if you use a tracked variable instead of a global variable. The tracked variables can be referenced in a wait for event.

1648849210983.png

varaible-based-condition-jf-ms_1.fsm

1 Like 1 ·
Myriam avatar image Myriam Jeanette F ♦ ·
Thank you very much! Discovering tracked variables was awesome ))


0 Likes 0 ·
Show more comments
Marcello Rosadini avatar image
0 Likes"
Marcello Rosadini answered

Hi Myriam,

probably the easiest way is by using a label on the item.

Hope this model can help

support mondragon.fsm


5 |100000

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

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.