Stay Time Doesn't Change

Stay Time Doesn't Change

MohammadMajd
Not applicable
1,758 Views
7 Replies
Message 1 of 8

Stay Time Doesn't Change

MohammadMajd
Not applicable

[ FlexSim 23.0.3 ]

In my model I am using a global table to set up processing and set up time. I am using stay time graph to validate my results but stay time for processor 1 does not change. Processing time for processor 1 is in table "hours" Column 5. Any help is appreciated.

NPP Question.fsm

0 Likes
Accepted solutions (1)
1,759 Views
7 Replies
Replies (7)
Message 2 of 8

julie_weller
Not applicable

Hi @MohammadMajd! I'm not seeing that behavior, you don't have an item enter the processor until after time 184,000 but at around time 366,560 the staytime chart changes :

1692039675001.png

Are you running your model for long enough?

0 Likes
Message 3 of 8

MohammadMajd
Not applicable
Yes, I can see this stay time for the first objects but as more objects enter and exit the processor the statistics don't change.
0 Likes
Message 4 of 8

julie_weller
Not applicable
Accepted solution

@MohammadMajd Ahhh I understand. What you probably want to do is set the value dynamically (so that every item gets a new processing time based on the table or something similar?). You could set a label on the processor like this:

1692040472319.png

And then update the row number based on that label here:

1692040526493.png

Then the label will update every time an item enters with an On Entry trigger, something like this:

1692040570308.png

Here's the file if you need more help! Let me know if that's not what you're looking for and I can try something else 🙂

npp-question.fsm

0 Likes
Message 5 of 8

MohammadMajd
Not applicable

Thank you for your help. For WU Room 1 Processor I am reading processing time and set up time from column 1 and 2. (Am I correct?) I wan to do the same for Processor 1 and read column 5. the stay time graph for WU Room 1 updates as new objects enter and I did not need to define a label. I am wondering why I cannot do the same for Processor 1.

1692041139415.png

0 Likes
Message 6 of 8

julie_weller
Not applicable
@MohammadMajd! That code actually isn't changing the processing time, what it's doing is just choosing a constant processing time of .28. The reason the wait time in the chart changes is because "WU Room 1" has to wait for Processor1 to be empty before it can send it's object (you can test that by connecting "WU Room 1" to an empty queue, you'll see that it's Staytime chart is constant).

That code is saying choose the Column 5 and the Row to be the value that is in Table("Hours")[1][1] (in this case 2.5, but it rounds down to 2) and so it always chooses Column 5, Row 2 as the processing time.

You need the label to increment the row number on both processors.

Does that make sense?

0 Likes
Message 7 of 8

MohammadMajd
Not applicable
Yes, this makes sense thanks!
Message 8 of 8

julie_weller
Not applicable
I'm glad it helped!
0 Likes