question

Aries Vash avatar image
0 Likes"
Aries Vash asked Carter Walch commented

Store total processing time in global table

elapsed time.fsmHi, I would like to ask for some help. How do I record the total process time of each item type in the global table? I'm using a statistical distribution and I want to get, for example, the output of 20 boxes and increment the process time it use in the global table.


Example:


ItemType1: Box1 processing time 20 sec, Box2 processing time 22 sec... by incrementing i will get the total processing time of each itemtype.


1691200018224.png


How can I achieve this? thank you for answering.



FlexSim 19.2.4
global tableincrement value
1691200018224.png (221.1 KiB)
elapsed-time.fsm (28.4 KiB)
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

·
Carter Walch avatar image
1 Like"
Carter Walch answered Carter Walch commented

Hi @Aries Vash ,

elapsed-time.fsm

I followed the same logic you did in your On Exit Trigger of the Queue to increment the Output. To do the same for the item staytime, you can reference the staytime of the last item that passed through the processor with:

Model.find("Processor1").as(Object).stats.staytime.value

I put this in an On Entry Trigger of the Queue, because at the On Exit event of the processor, the staytime value had not yet updated.

1691250232409.png

I demonstrate in this gif the processing time being incremented for each type as I step through the model. The Model runtime on top shows it is accurate.

increment.gif

Hope this helps!



1691250232409.png (63.7 KiB)
increment.gif (594.5 KiB)
elapsed-time.fsm (29.2 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.

Aries Vash avatar image Aries Vash commented ·

Sweet!!! Thank you so much for the answer, this works the way I need it.


Also just to add I've done some searching from older question while my question here is not answered yet.


its seems that it can also reference from:

getitemvar(item, 2)

1691282940202.png

in the processor to increment the total processing time the way you did with the queue on entry

 Model.find("Processor1").as(Object).stats.staytime.value


Overall thank you!!



1 Like 1 ·
1691282940202.png (119.8 KiB)
Carter Walch avatar image Carter Walch Aries Vash commented ·

You're welcome!

Yes that's another great way to access the processing time, glad it worked out!
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.