question

Mankin L avatar image
0 Likes"
Mankin L asked Joshua S answered

how to send 1 in 10 items to another processor

how do I send 9 items to processor 1 and the 10th item to processor 2?1in10.fsm

FlexSim 18.2.3
processor
1in10.fsm (17.9 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

·
Joshua S avatar image
1 Like"
Joshua S answered

I added a label to your processor 1 called "Port" which the Send to P

ort looks at. Then I added some code into the OnExit trigger for the processor that changes the port label based off if it is the 10th item.

If you want some randomness built in, you can instead use the Send to Port by percentage option.

18628-1in10.fsm


pic1.png (35.7 KiB)
18628-1in10.fsm (178.0 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.

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.