question

Sofia G21 avatar image
0 Likes"
Sofia G21 asked Sofia G21 commented

Best way to display a value of added labels in the statistics dashboard?

I have a model with a series of machines in a line. Each of those machines consumes supplies, and are attached to the 'Material Consumption and Replenishment' process flow. At the beginning of the simulation model, I create a label at each of the machines called "Missions" that increases by 1 every time material is 'delivered' to each of to the machines; I have one label at each machine. I want to be able to display the total number of missions (add all of the 'Missions' labels) per hour on my statistics dashboard. What is the best way to display this value?

FlexSim 22.2.0
labelsstatistics
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Sofia G21 commented

Here's one method using an interval of a stats collector and a label LastValue stored on the collector to keep a track of the total. The custom code is in the NumMissions column's value field which just looks at the group of processors.

HourlyLabelSum.fsm


hourlylabelsum.fsm (34.4 KiB)
· 8
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Sofia G21 avatar image Sofia G21 commented ·
Hey Jason, could you please share the file in an earlier version of Flexsim? I only have 22.2.2 and can't open it. Sorry, and thanks in advance
0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Sofia G21 commented ·
1 Like 1 ·
Sofia G21 avatar image Sofia G21 Jason Lightfoot ♦ commented ·

Hey Jason, as always thanks so much for your help! I think that solution is very clear and very helpful. If I wanted to now create a a table that displayed the average missions/day for the duration of the simulation, what would you recommend?

0 Likes 0 ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.