question

victoria.davila avatar image
0 Likes"
victoria.davila asked Matt Long commented

Staytime for Processer longer than Process Time?

assembly-rx-1.fsm

In the model I have attached, I was looking into why the units were taking so long to complete. I am referencing a Global Table for my process times so i figured I wasn't referencing them correctly at first. However, for RXCabinet Step 1, I manually entered the Process Time versus referencing the Global Table. I added a Stay Time dashboard to capture how long a flow item was in the processor and running the model shows the item stayed in the processor longer than the manually inputted Process Time. I even looked at the Run Time to physically see a flow item move in and out of the first step and it looks like its in there longer than it should and I can't figure out why.

FlexSim 7.7.4
process times
assembly-rx-1.fsm (1.4 MiB)
· 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.

Matt Long avatar image Matt Long commented ·

It looks like you're trying to reset your dashboard statistic objects manually in your OnEntry triggers of your processors. Not exactly sure why you want to do this, but if you must, it may be better to call reset on the stat objects rather than manually manipulating the bundles.

function_s(statObject, "reset")
0 Likes 0 ·

1 Answer

Matt Long avatar image
1 Like"
Matt Long answered

The staytime of a processor is defined as the (time the item leaves the processor) - (time item enters processor). The staytime is not the same as the Process Time. Your model is calling stopobject on your processors and keeping the flowitem in the processor longer, increasing the staytime.

If you want to chart the Average Process Time per processor, the best way to do this would be to create a Tracked Variable label on each processor that is a Time Series type (see inittrackedvariable() command). Then use

setlabel(current, "processTime", processTime)

in the Process Time field. This will automatically update the average value on the tracked variable that can then be charted.

In your dashboard, change your Average Staytime option from the Statistics Tab to be a Custom and enter the following code:

getstat(label(i, "processTime"), "", STAT_AVERAGE)

(in the future you'll be able to chart these tracked variable labels directly without the need for custom code)

5 |100000

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