question

Mark S2 avatar image
0 Likes"
Mark S2 asked Ryan Clark commented

Elevator Statistics & Dashboard

Hello,

How does one go about adding elevator stats such as patient wait time (until elevator arrives) by hour of day, number of people waiting for elevator by hour of day, and elevator utilization by hour of day?

Thanks!

Mark

HI Entrance Model V7.fsm

FlexSim 21.0.3
elevator
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

Ryan Clark avatar image
0 Likes"
Ryan Clark answered Ryan Clark commented

Hi @Mark S2,

Here is a modified version of your model that includes dashboards for your desired statistics: hi-entrance-model-v7-rc-v2.fsm

I have the stats split into three separate dashboards based on the categories you mentioned. All of the charts use custom Statistics Collectors and Calculated Tables, which can be found in the Toolbox panel. You can go through those tools to see how I set up the charts. Please feel free to let me know if you have questions about any aspect of those tools.

The reason I set up custom stats collectors is that it appears there is currently not a default template for elevator banks in the Healthcare environment. That might be added in a future update.

I hope this helps! Again, please let me know if you need any additional help or have questions about any steps in the process.


· 2
5 |100000

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

Mark S2 avatar image Mark S2 commented ·

Hi @Ryan Clark ,


This is absolutely amazing and even more than I asked for (but wanted anyway!). I had no idea that the stats collector could be so powerful/customizable. Having a concrete example like this to learn from has given me confidence to at least try something like this on my own next time.

The only thing I don't understand is how does the "NumWaitingStats" collector know that you want to access the NumWaiting column in this line of code:

prevValue = collector.getValue(prevRow,data.colNum)...

when you are calling data.colNum, why does colNum point to the second one...and could you simply have replaced it with '2' (the second column)?


Thanks again!!

Mark

0 Likes 0 ·
Ryan Clark avatar image Ryan Clark Mark S2 commented ·

Hi @Mark S2,

You're very welcome! I'm glad this is so helpful!

To answer your question, data.colNum returns the index of the current column (2 in this case). Since I just want to access the previous value in the same column, I just reference data.colNum instead of inputting the number, but you certainly could replace it with 2 if desired. For more info, see this page.

I hope this helps! Please let me know if you have further questions! Thanks!

0 Likes 0 ·