question

Briankuo avatar image
0 Likes"
Briankuo asked Natalie White commented

How to change the label by time?

Hi, I would like to change the label by time.

In detail, items are generated by source with labels(duniform 1 to 4).

When the item was transported into the rack, it begins to count the time how long the items stay in the rack.

Every 24 hours past, the label of the item will plus 1 ,until it reach 4 (the maximum).

Please help me to solve it. Thanks a lot!


FlexSim 22.0.16
labelstime
· 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.

1 Answer

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Jason Lightfoot edited

An alternative to creating events to change the label over time is to just calculate the age when you need it:

  1. Math.floor((time()-stats_lastmovetime(item).value)/days(1))
· 10
5 |100000

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