question

Alexander Muff avatar image
0 Likes"
Alexander Muff asked Phil BoBo commented

Wait for downstream event

I am trying to use a "Wait for Event" to trigger an upstream process. (As soon as Zone 3 is empty, I can continue loading Zone 2). The problem is that the first token is waiting for the trigger: Exit of Zone 3. It will wait infinity because no token ever reaches Zone 3.

Is there a way to check the content of a Zone and use that as a trigger?

FlexSim 16.2.0
wait for eventzone
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

·
Kari Payton avatar image
0 Likes"
Kari Payton answered Phil BoBo commented

Hi @Alexander Muff I'm not sure if this answers your question. You can set a tracked variable to track the content of the zone. See attached for example.

The tokens enter a zone and then the trackedvariable is increased by +1 each time a token passes. When a token leaves the trackedvariable is increased by -1. On the left side a decide point is used. If the content is > 20 then the token moves on tot he sink if not it will continue the loop to check the content. A negative of this model is the continuous checks. It can slow the model down some depending on how often you check. Hope this helps! trackedvariableexample.fsm


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

Alexander Muff avatar image Alexander Muff commented ·

This will work prefect for my model.

1 Like 1 ·

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.