This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices.
This is a small and simple example how to collect results from a queue in a Global Table and display the results in a line graph.
The special thing in this model is that the data for the queue are collected for an interval (600 s User Event UserEventCollectQueueResults) where in this interval every 30 s (User Evnet UserEventCollectIntervalData) the data get collected (Global Table IntervalResults).
After the 600s the average of the collected data are calculated and written to the Global Table QueueResults.
The main code is in the User Events UserEventCollectIntervalData/UserEventCollectQueueResults, the Global Tables IntervalResults/QueueResults and the Global Variables giIntervalDataCounter/giQueueResultsCounter are used.
The line graph is made with three Recorder objets which are just over each other. This graph is also included in the Model Control GUI under Results in an ortho view.
Attention:
Do not delete or rename the object Logo_FlexsimD, because otherwise the model will not work correct. Also do not rename, delete or rerank other objects.