question

Prathmesh Khairnar avatar image
0 Likes"
Prathmesh Khairnar asked Prathmesh Khairnar commented

How to divert 3 different item types to 3 different(respective) processors?

I have queue, 3 different item types are arriving at a queue from 3 sources. I want only one queue for 3 sources. Further from queue I want to divert these 3 items to the 3 respective processors. How can I do that? Like for 2 items, I can do send to port as By Expression.

FlexSim 17.1.0
flowitem
· 4
5 |100000

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

SHASHIKUMAR. V avatar image SHASHIKUMAR. V commented ·

Dear Prathmesh,

Use single Source and single Queue with 3 type items and select By Expression in flow tab dropdown menu.

1 Like 1 ·
Prathmesh Khairnar avatar image Prathmesh Khairnar SHASHIKUMAR. V commented ·

I want to use one queue for all 3 sources, Is it possible that way?

0 Likes 0 ·
SHASHIKUMAR. V avatar image SHASHIKUMAR. V Prathmesh Khairnar commented ·

Yes......u can use one queue by selecting First Available in the Send to Port dropdown menu.

1 Like 1 ·
Show more comments

1 Answer

·
Mischa Spelt avatar image
0 Likes"
Mischa Spelt answered Prathmesh Khairnar commented

Hi. You can still use Port By Expression and use the default option of item.type. In your sources, make sure you set the item type, for example using the "Set Item Type" or "Set Item Type And Color" options.

Please see the attached demo model send-to-processor-by-item-type.fsm in which I have only changed the Send To Port of the Queue and the On Creation triggers of the Sources.


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

Prathmesh Khairnar avatar image Prathmesh Khairnar commented ·

Thank you so much sir

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.