How to let the two items of the same itemtype flow into two different ports?

How to let the two items of the same itemtype flow into two different ports?

jiafeng_w
Not applicable
23 Views
2 Replies
Message 1 of 3

How to let the two items of the same itemtype flow into two different ports?

jiafeng_w
Not applicable

[ FlexSim (other) ]

The source produce two items of the same itemtype at the same time. Then two items flow to the queue. After the queue, I want the two items flow into two different ports.

0 Likes
Accepted solutions (1)
24 Views
2 Replies
Replies (2)
Message 2 of 3

jing_chen
Not applicable
Accepted solution

Hi, jiafeng

Not quite understand what you want.

If you just want to split every 2 items to different port, you can just change the expression like "getinput(current)%2+1" in sendtoport trigger (as the pic show below)

11474-捕获.png

May it helps~

0 Likes
Message 3 of 3

jiafeng_w
Not applicable

Thank you so much.

0 Likes