Item LOS

Item LOS

dmdurbin8RMCX
Enthusiast Enthusiast
10 Views
3 Replies
Message 1 of 4

Item LOS

dmdurbin8RMCX
Enthusiast
Enthusiast

[ FlexSim HC 5.3.10 ]

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.

0 Likes
Accepted solutions (1)
11 Views
3 Replies
Replies (3)
Message 2 of 4

dmdurbin8RMCX
Enthusiast
Enthusiast
0 Likes
Message 3 of 4

cliff_king
Not applicable
Accepted solution

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

Message 4 of 4

dmdurbin8RMCX
Enthusiast
Enthusiast

Thanks again Cliff! This is exactly what I needed!

0 Likes