question

dougdurbin avatar image
0 Likes"
dougdurbin asked dougdurbin commented

Item LOS

I'm trying to figure out how to use the data collector to determine the average length of stay for items that were created. It seems like it would be a combination of the getcreationtime() and getentrytime() commands where getentrytime() would be on any processing, queue, or exit item objects. I'm stuck on determining the criteria under the data collector area in the toolbox and how to proceed from there.

FlexSim HC 5.3.10
itemsitem flow
· 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.

dougdurbin avatar image dougdurbin commented ·
0 Likes 0 ·

1 Answer

Cliff King avatar image
1 Like"
Cliff King answered dougdurbin commented

You were definitely thinking in the right direction by using a Data Collector and the getcreationtime() command!

In the attached sample model, I use a Data Collector with a Recording Event of "Item Exits Location", then I use the Data Recording Criteria field to filter out all but the events associated with the processor object, then I record time() - getcreationtime(item) to capture the total LOS of the item.

If instead of the total LOS, you want to record the time between two objects in the item's flow, you would need to use a trigger on the first object to record the time it enters to a label of the item with a statement like setlabel(item, "StartTime", time()), then the Data Collector could record the difference in time on the downstream object with a statement like: time() - getlabel(item, "StartTime").

I apologize for the amount of time you had to wait to get an answer to this question. I'm afraid the post got overlooked. Thanks for your patience!

item-los-reporting.fsm


· 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.

dougdurbin avatar image dougdurbin commented ·

Thanks again Cliff! This is exactly what I needed!

0 Likes 0 ·