question

Aaditya J avatar image
0 Likes"
Aaditya J asked Luca S4 commented

Can we have Input and Output against time on same time plot on Dashboard

inputvsoutputgraph.fsm

I want to track Input Vs Output per day on a single graph as we do in excel.

I have attached the model for your reference.

FlexSim 18.2.2
time plot
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
3 Likes"
Jordan Johnson answered Luca S4 commented

Here is a model that has the graph you want:

inputvsoutputgraph-updated.fsm

The key is to understand how the time plot expects data to be formatted, and then to build a table in that format.

In the Statistics Collector, every time the timer event fires, I create an array of stats that I want to get. Then I set that array as the row value. Since the row value is an array, the Statistics Collector makes more than one row each timer event. The row value contains the name of the statistic. So one row will have the Input stat, and the other will have the output stat. This format can be accepted by the Timeplot chart.


· 5
5 |100000

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