In my model I need the value of the output of the queue during my simulation.
Can someone helps me to get this value with a code ? Something like 'getvarnum'...
Thank you
int output = getoutput(node Queue); // node Queue is the reference to your queue-object
int output = getoutput(model().find("Queue100")); // if you use the find method.
It is even simplier, if you use the sampler tool (Icon of an eye dropper). Then you move this tool over the Queue and click the left mouse button. You choose from the opening window the entry "Getters..." and then the appropriate line of code.
As @Jörg Vogel shows in his comment, the Object class has a stats property that lets you access a bunch of statistical values that the object keeps track of. To get the output it looks like this:
Object obj = model().find("Queue1"); int output = obj.stats.output.value;
8 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