question

Kags avatar image
0 Likes"
Kags asked Jeanette F commented

Wait for event for already happened events

Hello everyone,


In my example, I have process flow which creates objects in the 3D model, for some reason, my token will reach WaitForEvent (this is intentional) after the event (Item entering FloorStorage1) has happened. Is there a way to check if the item is existing on FloorStorage1? I tried to use conditional decide as well before the token can proceed, but that doesn't seem to help.


WaitForEvent.fsm

FlexSim 21.2.4
conditional decidewaitforevent
waitforevent.fsm (60.6 KiB)
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Praveen J2, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

You can test if item.up is the floor storage object.

Or you can split your token and have a delay one side and the wait the other side and join them afterwards. That way whichever takes longer is the limiting factor in the token progressing.

· 3
5 |100000

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

Kags avatar image Kags commented ·

Hi Jason,


Am i using the item.up correctly? With the below syntax, it doesn't pass if the item is located in FloorStorage1.


1658779462036.png

0 Likes 0 ·
1658779462036.png (13.8 KiB)
Jeanette F avatar image Jeanette F ♦♦ Kags commented ·
token.item.up 

will return a pointer to the object.

token.item.up.name

will return the name of the object as a string

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Kags commented ·

If you can, set up a permanent pointer label somewhere and refer to that for your comparison instead of using strings and object names.

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.