question

Marian Cretu avatar image
0 Likes"
Marian Cretu asked Joerg Vogel answered

Decision stop by item.destination

Hello all,

I have a conveyor with a few decision points.

On this conveyor items will travel. Each item will have a label (item.destination). This label will be a pointer to a decision point on the conveyor.

I want that each DP to stop items that have the same destination with the DP name.

I tried to put this in the OnArrival trigger / Stop Item - Condition : item.destination==current.name but it doesn't seem to work.

Please advise.

Thanks.

FlexSim 19.1.1
decision points
· 2
5 |100000

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

zacharyh avatar image zacharyh ♦ commented ·

If you could attach your current model we might be able to better help you.

0 Likes 0 ·
zacharyh avatar image zacharyh ♦ commented ·

You could also go through the tutorial about conveyors. It has multiple examples of sorting items using decision points.

https://docs.flexsim.com/en/19.1/Tutorials/AdditionalTools/Tutorial1Conveyors/ConveyorsOverview/

0 Likes 0 ·

1 Answer

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

Because you didn’t attach a model or the source code, that sets the label destination at the item, I assume that destination contains a pointer data type. The comparison with the name won’t succeed because a string isn’t a pointer. You can try to compare item.destination with current

Or

Item.destination.name with current.name

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.