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.

Murphy avatar image Murphy commented ·
thanks, but if cant be use combiner how to do that?
0 Likes 0 ·
Murphy avatar image Murphy Murphy commented ·
also cant be use queue, just use my logic model , could you can finish that? thanks bro.
0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Murphy commented ·

You can use the trigger functions to stop the processor after the first item enters. As soon as the next is ready on Processor1, it gets resumed.

1659960140839.png

1659960277428.png

0 Likes 0 ·
1659960140839.png (91.7 KiB)
1659960277428.png (15.1 KiB)
Show more comments

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.