question

Kevin Megee avatar image
0 Likes"
Kevin Megee asked Ben Wilson commented

Source control

Source Trigger TEST.fsm

Flexsim,

I have a simple question that I can't seem to figure out. I'm trying to open one source at a time based off when a batch exits a queue further down the process order. In my model i have two processes, Red(1) and Green(2). Red process starts with 7 items from S1 while the green starts with 6 from S2. Im trying to keep each process separate all while going through the same "Weighing" process, which I think i have done, but my real question is, how do i call for each source to re-create the batch size (6 and 7) once the kits exits each "KitQ#" The sources don't have a set arrival schedule but need to create the items over again once the current "kit" passes a certain point in the model. I've attached a simple model trying to show what I'm looking for. The full model I'm created only uses triggers as controls. I'm not efficient working with Process Flows. I appreciate any feedback! Thanks!

FlexSim 21.0.2
flexsim 21.0.2event triggersource controlevent source
· 1
5 |100000

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

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @Kevin Megee, was Jörg Vogel's answer helpful? If so, please click the red "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel edited

You want to create a discrete number of items by a triggered event. I would use a separator instead of a source. You create in a source in schedule arrival mode one item. It is your prototype. You give it a label that identify it as the item staying at a separator. The separator releases this prototype item and the number of new items in split mode. The prototype item goes to an exit port connected to a queue (a) which is directly connected to the separator input. All new created items by split mode will be released to another output port, that is connected to your main model processes. You close the output port of queue(a) on reset and on exit event trigger. You open the output when ever you need another amount of items in your model. The process time of your separator is near or exactly null. You can control the split amount directly as a constant value in the separator tab or by a label value at the prototype item or at the separator.

The prototype item is always the last item leaving the separator. The separator content is then one. You can identify the content of an object by its subnodes.length .

souce by separator.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.