question

Samaneh D avatar image
0 Likes"
Samaneh D asked tannerp answered

How I should send flowitems with certain itemtype based on another process?

I have a model which has two different lines. in each line I have two item types (1 & 2 for first line and 3 and 4 for the second line). I wish to start the process on these two processors on the same time and also item types should be align with each other. when the item type 1 enters to processor 1 I should send 6 flow items with item type 3 to processor 10 and when item type 2 has been sent to processor 1, 6 flow items with item type 4 should be sent to the processor 10. it is not necessary to assign item types 3 and 4 before entering to processor 10. I can have item types 3 and 4 fixed when they exit processor 10. I have tried sending massages to open and close input ports of processor 10 but it did not work and also I have no idea how to match item types in different processors.

Thank you in advance for your kind help.

model.fsm

FlexSim 19.0.0
itemtypemessagesopen or close specific port
model.fsm (20.1 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

·
tannerp avatar image
0 Likes"
tannerp answered

This is something that can be accomplished with Process Flow. I'm not sure if you've used Process Flow before in your models, but it's a handy tool. Here's an example of a Process Flow block that will do what you are looking for, I think.

The Event Triggered Source creates a token when Queue1 tries to send an object to Processor1. That token stops both the Processors so 6 new items can be created in Queue 10. The new items receive labels based on what Type of item came from Queue1. After the objects are created, the Processors resume their activity, thus synchronizing the process, as desired. Let me know if this helps or if you have any additional questions.

Example model: new-items-pf.fsm


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.