question

Murphy avatar image
0 Likes"
Murphy asked Murphy commented

the processor wait for another item to enter before starting processing.

I have question, I want when processor have two items will start process, if one item first into processor2 then will be wait, until next item entry then start process. How to achieve? Thanks guys.(Processor2 max content = 2).


code logic: if (Processor2.subnodes.length == 2){ start process ;}

else { wait one item entry ; )



1659954450485.png


FlexSim 19.0.0
wait for event
1659954450485.png (159.8 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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Murphy commented

You can use a combiner in place of the second processor and set it to 'Batch'. You then need a second connection from the processor to the combiner. The quantity in the components list is the quantity of items that are batched in addition to the first.

1659955752798.png

Or you could place a queue in between the two processors that is set to batch items.

1659956362085.png


1659955752798.png (127.8 KiB)
1659956362085.png (73.1 KiB)
· 8
5 |100000

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