Record lead time

All topics on coding 4Dscript in Enterprise Dynamics.
Post Reply
Helbe
Posts: 6
Joined: Tuesday 21 February, 2017 - 12:02

Record lead time

Post by Helbe »

Dear,

I have a model where I want to calculate the duration time for all the products (and the average duration time). I have 3 different product types and I want to find a way to measure the time between creation and when the product leaves the flow. How can I model this?

Best regards and thank you
User avatar
HarryBunnik
Posts: 362
Joined: Monday 07 February, 2011 - 11:22

Re: Record lead time

Post by HarryBunnik »

Ha Helbe,

You could try to ask the function "age" of the product, once it leaves the flow and write that away in a table.

This function returns the age of an atom. The age is the difference between current time and creation time. When a run is reset, the creation time of all atoms becomes 0.

Cheers,

Harry
Helbe
Posts: 6
Joined: Tuesday 21 February, 2017 - 12:02

Re: Record lead time

Post by Helbe »

Thank you, this was exactly the kind of help I needed!
Post Reply