Hi @Joseph Ai, 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 unaccept and comment back to reopen your question.
I don't know if this was intentional or an oversight when changing all pinned statistics to use the same mechanics in the last version.
It's not too difficult to create your own statistics collector for this task though. In the attached model I listen to the OnEntry event of the sink to add a new row to the statistics collector table every time an item enters the sink. I also have a timer event set up so the graph updates regularly even if the value doesn't change. To have a reference to the sink for the timer event, I added it as a label to the collector.
All needed information should be available in the statistics collector tutorial, but here is a short summary of the needed steps:
A statistics collector adds data to an internal table (you can view this table under the "General" tab). Each row of the table can represent one of more data points in a connected chart. For a time chart, each row needs to hold the time and the corresponding value.
In the Events tab, you set up which events should trigger the creation (or update) of a data row. In this case this should be an event that marks a change in the input of the sink (OnEntry, OnInputChange). Since each event should add a new row you can ignore the "Row Value" setting of the statistics collector.
The data that gets written to the table is determined in the "Columns" tab. Here we need two columns, as mentioned before; time and value/input. The time can gotten from the command "Model.time" (model time in seconds) or "Model.dateTime" (date/time format). Make sure to use the correct "Display Format" depending on which command you choose to use.
If you use the "OnInputChange" event, the input value is part of the parameter set of that event and is automatically available through "data.NewValue" (if you didn't change the label name in the Events tab; the 2021 version uses "data.Input" for example). For the timer event in the attached model a reference to the sink is needed. You could use "Model.find()" to get it, but I opted to add it as a pointer label to the collector itself. Through "object.stats.input.value" the input statistics of an object can be read.
After setting up the statistics collector, you can add a base chart to the dashboard and connect it to the collector by choosing it as the data source. Then make sure that the x- and y-values and other settings are correct.
You could also load up the 2021 version and have a look at how it is done there. Pinning the input vs. time to dashboard also simply adds a statistics collector and a line chart that is linked to it to the model. That collector uses the OnInputChange event to update it's table.
15 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © 2025 Autodesk Inc. All rights reserved