For example, there is a processor with a process time of 90 seconds. When there is a item comes to the processor and the processor starts working, how can I know how many seconds has passed since the processor starts working? Thanks.
For example, there is a processor with a process time of 90 seconds. When there is a item comes to the processor and the processor starts working, how can I know how many seconds has passed since the processor starts working? Thanks.
getitemvar(item, 1) returns the time when an item started processing in a processor. The following code snippet will return the amount of time an item has spent processing if it is in a processor:
treenode item = model().find("Processor1").first; return time() - getitemvar(item, 1);
getitemvar(item, 2)This gives you the actual process time used instead of the solution "current time" - "time of the flow item entering the processor". The code above will work even if there are breaks in process time (process down time or operator scheduling issues).
9 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved