question

Thomas JR avatar image
0 Likes"
Thomas JR asked Thomas JR commented

How do I display average staytime using pre-built dashboard graphs?

Hi folks

I'm trying to display statistics for a global list of objects by clicking the "View this activity's statistics" icon in "Quick properties" for that global list.

The property "Back Order Content" has four different statistics: Current, Min, Max and Avg. When I pin the statistics to some dashboard the corresponding timeseries appears to display Max. Instead, I want the timeseries to display Avg. The purpose is to display average waiting time.

I have tried to change Max to Avg within the statistics collector, but nothing seems to work for me. Is this possible at all, or should I find some other approach to get what I want?

FlexSim 19.2.4
display average staytime for global list
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

·
Jordan Johnson avatar image
1 Like"
Jordan Johnson answered Thomas JR commented

To get the chart you want, you will need to make your own Statistics Collector. Here's an example model:

avg-backorder-content.fsm

To make this model, I added a new Statistics Collector. Then I added a Timer Event that repeats every 10 model units. I added a label to this event, named it ListActivity, and sampled the list in my Process Flow.

Then I went to the columns tab and added two columns. The first writes the current time in the model. The second uses this code to get the average backorder content at this point in time:

getstat(data.ListActivity, "BackOrderContent", STAT_AVERAGE)

Once you do that, you can add a new time plot and point it at the Statistics Collector. That's how I made the chart.


· 1
5 |100000

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

Thomas JR avatar image Thomas JR commented ·

Thanks, looks good!

0 Likes 0 ·

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.