question

Justin Brozzo avatar image
0 Likes"
Justin Brozzo asked Matt Long answered

Is it possible to have a triggered source create the same number of objects as the processor that triggered it.

In my model, I have a Source (Source1) that creates these quantities of items on a schedule: 1, 2, 3, 4 respectively.

As you can see when an item leaves P1, it triggers Source2, whose objects are then processed at P2.

This is the problem I'm facing:

The first two arrivals (with one and two flowitems) trigger the proper amount of items created at Source2. The third arrival, however, only triggers two items at Source2. Similarly there are four created and when it leaves only two are created and sent to p2.

Is it possible to have this match and how would this be done? Please show if possible using this model:

sourcecontent.fsm

FlexSim 16.1.1
sourcetriggers
sourcecontent.fsm (17.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.

Adrian Haws avatar image
0 Likes"
Adrian Haws answered

Justin,

A simple way to do this is by sending a message in the OnExit trigger of P1. Send it to Queue3 (with a center port connection) and enter 1 in Parameter 1. Then in the OnMessage trigger of Queue3 you can Create Flowitems. See updated model.


5 |100000

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

Matt Long avatar image
0 Likes"
Matt Long answered

You could remove the Source connected to P1, then instead of opening ports in the On Exit of the P1, send a message to Queue 9 (connect with a centerport). Then in Queue9's On Message, choose the pick option Create Flowitems. As the message will get called for each exiting flowitem, the Quantity to Create will just be 1.


queue9.png (29.3 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.