question

mohammadmajd avatar image
0 Likes"
mohammadmajd asked Julie Weller commented

Stay Time Doesn't Change

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

FlexSim 23.0.3
global tablestaytime
npp-question.fsm (62.5 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.

Julie Weller avatar image Julie Weller commented ·

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 0 ·
1692039675001.png (11.5 KiB)
mohammadmajd avatar image mohammadmajd Julie Weller commented ·
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 0 ·

1 Answer

·
Julie Weller avatar image
0 Likes"
Julie Weller answered Julie Weller commented

@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


1692040472319.png (16.3 KiB)
1692040526493.png (20.3 KiB)
1692040570308.png (20.2 KiB)
npp-question.fsm (65.6 KiB)
· 4
5 |100000

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

mohammadmajd avatar image mohammadmajd commented ·

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 0 ·
1692041139415.png (20.9 KiB)
Julie Weller avatar image Julie Weller mohammadmajd commented ·
@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 0 ·
mohammadmajd avatar image mohammadmajd Julie Weller commented ·
Yes, this makes sense thanks!
1 Like 1 ·
Show more comments

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.