123SPT.fsmWhy does my order end but the run time keeps running
123SPT.fsmWhy does my order end but the run time keeps running
Hi @diana, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.
If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.
The collection of some of the statistics involve timed intervals that create pending events and thus keep the model running. Those are mostly the people statistics (apparently the model was either created in or switched to the healthcare environment at some point), but also the "Staytime by Type" and "Composite Staytime" graphs.
You can use the "On Entry" trigger of the sink to stop the model when the input number reaches the total number of items created by the sources.
I added code that reads those quantities automatically, but you could of course also just type in the expected value of items manually.
int qty = 0; // Code to read values from source schedules ... if(current.stats.input.value == qty) { stop(); }
14 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