I want to be able to change when my simulation starts.
I want to be able to change when my simulation starts.
There is an exmple about change start time/date , it use the realtime. You can
customize the startTime as you wish.
The Code need to be added to OnRunStart Trigger (Tools -> Modeling Logic -> Model Trigger -> On Run Start).
double startTime = applicationcommand("getunixtime"); treenode startNode = getmodelunit(START_TIME_NODE); set(startNode, startTime); applicationcommand("convertunixtime", startNode, startTime); treenode stopTime = getmodelunit(STOP_TIME_NODE); set(stopTime, startTime + getmodelunit(TIME_MULTIPLE) * get(node("MAIN:/project/exec/stoptime"))); applicationcommand("convertunixtime", stopTime, get(stopTime)); set(getmodelunit(CURRENT_TIME_NODE), 0); //Cause the RunPanel to update
startTime takes some different value and its not matching with my system timing
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