question

João Moretti avatar image
0 Likes"
João Moretti asked Raja Sekaran edited

How cuold i make a source feed 3 queus at same time in once?

Good morning !

I need to start my simulation with all my queus full, the problem it's that i don't know how to tune the source to fill all queus once at the moment 0. I have connected it with all my queus(That i want to be filled) but the source just fill the first connection.

In case that someone has examples, my flexsim's version is 17.0.2

Thanks for your help !

João

modeling
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

·
Jeff Nordgren avatar image
1 Like"
Jeff Nordgren answered
@João Moretti

You don't need to use a Source at all to initially create flowitems in a Queue to start a model.

As you can see by the status of Source1, it has not yet output any flowitems. The code is in the OnReset, OnMessage and OnEntry triggers of each queue. And you don't have to have the code in the OnEntry trigger. I just added that to set the itemtype and color for items in each queue.

Take a look at the code (all standard pick lists) and see if this is what you were looking for. This way, you don't have to change anything on the Source and you can just have it produce flowitems as normal.

If you have any questions or problems, please let us know.

Thanks.

fillqueuessample-jn1.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.