How to present the average number of people waiting in queue by hour?

How to present the average number of people waiting in queue by hour?

kuo
Not applicable
78 Views
6 Replies
Message 1 of 7

How to present the average number of people waiting in queue by hour?

kuo
Not applicable

[ FlexSim 23.2.1 ]

Hi, I want to have the information of average number of people waiting in queue for each hour in Dashboard. But I couldn't find any chart in dashboard option that meet my request. So is there any chart in library I can use ?

0 Likes
Accepted solutions (1)
79 Views
6 Replies
Replies (6)
Message 2 of 7

moehlmann_fe
Explorer
Explorer
Accepted solution

Here's an example model with a custom Statistics Collector that measures the average content of objects by hour. I didn't know of by "queue" you were referring to an actual Queue object or a waiting line, so I added both to the model. The Statistics Collector should work with any object that keeps its own content statistics.

avg-content-by-hour-fm_1.fsm

If you want to understand how it works and haven't worked with Statistics Collectors before, I would recommend you first read up on the topic and/or have a look at the tutorial. https://docs.flexsim.com/en/23.2/GettingData/AdvancedDataGathering/UsingStatsCollector/UsingStatsCol...

A brief summary of how it works in this case:

The objects it should track are part of a group. That group and the measurement interval are referenced in the collector's labels. There are two regular events added to the collector. One to finish the previous rows and one to create new ones.

When a row is added, the current time and average content statistic of the respective object are written to row labels in the On Row Adding trigger of the collector. When the row is later updated/finished, these values are used to calculate the average content during the measurement interval.

0 Likes
Message 3 of 7

kuo
Not applicable

Sorry, could you upload a copy of the 23.1.2 version of the model? I realized that my version is 23.1.2 instead of 23.2. Thank you very much!

0 Likes
Message 4 of 7

moehlmann_fe
Explorer
Explorer
0 Likes
Message 5 of 7

kuo
Not applicable

I have try to modify my model and put the queue i want to observe in a group, but there's something wrong. I guess it's because the label of statistics collector, but i have know idea how to set it.

AVG_Content_Try.fsm

0 Likes
Message 6 of 7

moehlmann_fe
Explorer
Explorer

Create a pointer label in the Trigger tab and use the sampling tool to link it to the group.

1703066952902.png

And on the Events tab, properly choose the "On Reset" option for the first time of the "CreateRow" event. And the "FinishRow" event must be placed above the "CreateRow" event, so it happens first (previous row is finished, then a new row is created).

1703067040031.png

You seem to have simply typed in "On Reset", which apparently broke something in the background, because I get errors after selecting the option from the dropdown menu.

You might have to set up a new, non-corrupted Statistics Collector.

In general, whenever you see descriptive text in an option field, that text is defined through markup text in the code that actually defines the logic of the option. If you just type text into a field, you override that code and the compiler is now left with text without any meaning.

You can write code expressions directly into such fields, but to choose some pre-defined option, use the dropdown menu.

0 Likes
Message 7 of 7

jason_lightfootVL7B4
Autodesk
Autodesk

Hi @kuo, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes