question

Patrick Cloutier avatar image
1 Like"
Patrick Cloutier asked Patrick Cloutier commented

How to graph utilization vs time in dashboard?

Hello, I need to chart the utilization vs time of workers and processors on a dashboard. I was hoping for a simple State chart template like there is for other stats but there is none.

I have seen posts with hints of solutions but none propose a simple standard way of doing it were you can easily choose which objects you want like in a regular chart template.

It is a fairly standard requirement as the average utilization doesn't mean as much as the fluctuations over time.

I tried to do it in this sample model but it doesn't work yet.

1 - How can I reference the group of workers instead of just the worker?

2 - What else do I need to change to make it work?

I really think should be a standard chart template.

Thanks a lot,

UtilizationVStime.fsm

FlexSim 21.2.4
chart templates
utilizationvstime.fsm (607.4 KiB)
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
0 Likes"
Jordan Johnson answered Patrick Cloutier commented

Is this what you are looking for?

1636400384017.png

If so, here are the steps to create it:

  1. Make a state table (you had already done that)
  2. Make a Process Flow. The purpose of the process flow is to create one token per worker (in the group) per time interval. Each token will have a TrackedVariable. You'll listen to the state of each object, and when it changes, set your tracked variable to the same value.
  3. Get the utilization for the TrackedVariable from the state table.
  4. At the end of the time interval, log the time, worker, and utilization in the stats collector
  5. Make a chart

Here's the model, so you can investigate these steps:

utilizationvstime_1.fsm

Adding a removing objects from the group will add or remove them in the chart. The ProcessFlow Variable called Interval determines how often the utilization is recorded.

This reason for all these steps is that you have to "forget" about the time spent in any state in previous time intervals.

If you confirm that this chart is what you want, I can add a request to the dev list.


· 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.