I added a label at the processor,as we know,the label would change when the simulation run.
Now,I need to sum the value of this label.
How to sum the same label value in an object dynamicly?
How can I solve this problem?
Thank you in advance!
I added a label at the processor,as we know,the label would change when the simulation run.
Now,I need to sum the value of this label.
How to sum the same label value in an object dynamicly?
How can I solve this problem?
Thank you in advance!
If you turn the label into a tracked variable you will automatically log all changes and with the properties count and average you can get the sum.
@steven.hamoen
Thank you for your reply.
I am new to this software,so I don't know how to use the tracked variable.
Is there another way to solve "sum"problem or how could I master the key point of "tracked variable"?
Looking forward your reply...
I'm not sure what you are writing on the label. You say: "as we know" But a normal label doesn't change unless you write to it. If you write to it you can also write to a 2nd label and on that second label have the sum. So for instance:
current.myLabel = 20;
current.mySumLabel = current.mySumLabel + 20;
Using the tracked variabel is easy with setting but getting the data out is somewhat more complicated so I will not go into that solution.
@steven.hamoen I am sorry that I did't express it well.
In fact,I add three labels at the processor to get the information of the Label value.Such as LabelC=“LableA*LabelB”.
The value of the label would change as the model run.Now I need to sum up all the Label C.And I don't have idea of this.Could you please give me some advice?
En,I would try it if could sum all the value of "LabelC "in Flexsim,thank you again .
If you write label C why can't you at the same time also write to label D which is then the sum of the current value of label D + the new value of label C.
Please post a small model that shows your problem because I don't understand it.
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