question

JUanGarcia avatar image
0 Likes"
JUanGarcia asked Andrew O commented

Question about source arrivals

In the model that we have uploaded we want to that the arrival time and the quantity of the source to be dependent from another queue:

The arrival time of the Type1: When the qReference1 has less than 174. We know that the script is the following; Model.find("qReference1").subnodes.length <174, but we don´t know where we have to put it.

Quantity of the Type1: It has to be 242- The quantity of the material that is in the qReference1. We know that the script is the following; 242 - Model.find("qReference1").subnodes.length, but we don´t know where we have to put it.

Like that with all the types.

We will be grateful if you help us.

SourceDoubt.fsm

Captura (1).PNG

FlexSim 22.1.3
sourcesubnodesarrivaltime
captura-1.png (35.7 KiB)
sourcedoubt.fsm (76.6 KiB)
· 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.

Andrew O avatar image Andrew O ♦ commented ·

Hi @JUanGarcia, was Jeanette F's answer helpful? If so, please click the "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

·
Jeanette F avatar image
0 Likes"
Jeanette F answered Jason Lightfoot commented

Hello @JUanGarcia,

You can accomplish this with an event triggered source in process flow that is followed by a create object activity.

1674493697087.png

sourcedoubt_1.fsm


1674493697087.png (41.3 KiB)
sourcedoubt-1.fsm (83.0 KiB)
· 2
5 |100000

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

JUanGarcia avatar image JUanGarcia commented ·

Hello, we have some problems with your answer.

Our objective is to create "the create" object in the qPCB and we don´t get it.

1.PNG2.PNG

0 Likes 0 ·
1.png (44.1 KiB)
2.png (83.9 KiB)
Jason Lightfoot avatar image Jason Lightfoot ♦ JUanGarcia commented ·
Then create it there instead of the model() or move it there from the model.
0 Likes 0 ·

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.