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

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

justin_brozzo1
Not applicable
149 Views
2 Replies
Message 1 of 3

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

justin_brozzo1
Not applicable

[ FlexSim 16.1.1 ]

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

0 Likes
Accepted solutions (1)
150 Views
2 Replies
Replies (2)
Message 2 of 3

adrian_haws
Not applicable
Accepted solution

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.

0 Likes
Message 3 of 3

matt_long
Not applicable

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.

1834-queue9.png

0 Likes