question

Jacob G3 avatar image
0 Likes"
Jacob G3 asked Jacob G3 answered

Trigger Wait For Event when list is empty

The case is that whenever a list becomes empty, it is being refilled from another list. That part works, but I need it to be triggered whenever the content of the list becomes 0 (like no green dots:)

But no matter what I choose in the wait for event on the list, it doesnt fire. I even tried to add it as a global list, based on the input from another thread. Its the Wait for Event that needs to trigger when BufferLane1ActivePallet content = 0. It needs to act as a gate, thus if the token inside LoadNextPallet hits Wait For Event it should let it pass if content = 0.

So maybe im using the wrong type here. I also considered using the Decide with a condtion like List(“BufferLane1ActivePallet”).entries().length < 1

Phase2.fsm


1647370390970.png

FlexSim 22.1.0
listwait for event
1647370390970.png (56.5 KiB)
phase2.fsm (79.4 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

·
Jacob G3 avatar image
0 Likes"
Jacob G3 answered

Got it working. I changed the value from 0.00 to 0, seems like that worked

For reference Phase2.fsm


phase2.fsm (79.2 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.

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.