question

michela-08 avatar image
0 Likes"
michela-08 asked michela-08 commented

Send items based on conditions

Hi,

In my model attached, I am sending items from Source2 to Queue1 buffer with label name as "Item_type". I want the Source3 component to send the same Item type as these items also have the same label name.

For example,

3 Items of [Item_type == L] are moving from Queue1 to the combiner1 then I want to send an item from Source3 to Processor1 and then to Combiner based on matching with Label [Item_type == L].

Together 4 (3 from source 2 and 1 from source 3) items should be combined and then sent to next Queue. This condition should be dependent on the first item from the source.

Similarly this applies for [Item_type == H] but quantity might differ in Source2.

How to do this? Please help

sample_model.fsm

FlexSim 22.2.3
queuecombiner
sample-model.fsm (28.7 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

·
Jeanette F avatar image
0 Likes"
Jeanette F answered michela-08 commented

Hello @michela_08,

You need to maintain the format of the schedule source. What you have pasted in has replaced the Arrival Time column which is still necessary.1670441440847.png

You can add a global table that the combiner can reference to change the component list depending on the label of the item from source 2. Select the combiner and add an on entry trigger and choose the picklist option called Update Combiner Component List.

1670441999459.png

I made two connections from the Queue to the combiner. They need to be the 2nd and 3rd connection to the combiner. I set one the Queue to send the items to port based on the label.

1670442015065.png


sample-model (1)_1.fsm


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

michela-08 avatar image michela-08 commented ·
Thank you @Jeanette F . This is helpful
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.