question

Bennett Foster avatar image
0 Likes"
Bennett Foster asked Ben Wilson edited

Combiner "pack" to separator "unpack" - item won't leave separator

I'm teaching a course and have an example problem with a combiner followed by a separator - to illustrate the various options.

It works fine until I have "pack" in the combiner and "unpack" in the separator. Then the first flow item out of the separator won't enter the next object (and of course everything backs up).

What do I need to know about combiners and separators that causes this to happen?

FlexSim 16.1.0
separatorsend to portblockedunpack
· 3
5 |100000

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

jing.c avatar image jing.c commented ·

Hi Bennett, if you attach the model someone can help you easier.

1 Like 1 ·
Joerg Vogel avatar image Joerg Vogel commented ·

standard-combiner-separator-combination.fsm

Model is something like that?

0 Likes 0 ·
Bennett Foster avatar image Bennett Foster Joerg Vogel commented ·

That solves it. I needed 2 output queues for the separator. I only had one in the model. I had not assumed that it would segregate the flowitems after unpacking them from the packed flowitem. Putting in the second queue makes it work. (I had never worked much with separators before.)

THANKS!!!

0 Likes 0 ·

1 Answer

Ben Wilson avatar image
1 Like"
Ben Wilson answered Ben Wilson edited

The default separator Send To Port logic sends the container object out through port 1 and the contents through port 2:

If you keep the default Send To Port logic, but don't have a 2nd output port connection, then the contents will be stuck in the Separator and block anything new from entering.

So as you found, one solution is to create a 2nd output port so that the default Send To Port behavior can function properly.

You could also choose or create any number of other Send To Port behaviors, however. The list of preconfigured options includes standard entries like First Available, Random, Round Robin, etc., or as always you can customize the behavior or start a new option from scratch by editing the code.


5 |100000

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