<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Pinning Input versus Time data for sink to dashboard in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/pinning-input-versus-time-data-for-sink-to-dashboard/m-p/13555264#M58979</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;Your picture shows an output. A sink has none output! Perhaps you try it with an input.&lt;/DIV&gt;</description>
    <pubDate>Mon, 21 Mar 2022 16:01:43 GMT</pubDate>
    <dc:creator>joerg_vogel_HsH</dc:creator>
    <dc:date>2022-03-21T16:01:43Z</dc:date>
    <item>
      <title>Pinning Input versus Time data for sink to dashboard</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/pinning-input-versus-time-data-for-sink-to-dashboard/m-p/13555263#M58978</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.1.0 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I need to get the input vs time data for this sink, but the option will not show up when I choose to pin a throughput to a dashboard. How can I get that?&lt;/P&gt;
 &lt;P&gt;P.S. I was able to get input vs time in 2021 version but I've been using 2022 and I cannot figure out how to do it&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1647877549991.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1509536i42E2B0EF7F176CF9/image-size/large?v=v2&amp;amp;px=999" role="button" title="1647877549991.png" alt="1647877549991.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 21 Mar 2022 15:47:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/pinning-input-versus-time-data-for-sink-to-dashboard/m-p/13555263#M58978</guid>
      <dc:creator>joseph_ai</dc:creator>
      <dc:date>2022-03-21T15:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Pinning Input versus Time data for sink to dashboard</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/pinning-input-versus-time-data-for-sink-to-dashboard/m-p/13555264#M58979</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Your picture shows an output. A sink has none output! Perhaps you try it with an input.&lt;/DIV&gt;</description>
      <pubDate>Mon, 21 Mar 2022 16:01:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/pinning-input-versus-time-data-for-sink-to-dashboard/m-p/13555264#M58979</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2022-03-21T16:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Pinning Input versus Time data for sink to dashboard</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/pinning-input-versus-time-data-for-sink-to-dashboard/m-p/13555265#M58980</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/50091-inputvstimecollector.fsm" target="_blank"&gt;InputVsTimeCollector.fsm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;All needed information should be available in the statistics collector tutorial, but here is a short summary of the needed steps:&lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1647937155626.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1509530iE9D44630E4E73DB8/image-size/large?v=v2&amp;amp;px=999" role="button" title="1647937155626.png" alt="1647937155626.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1647937174410.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1509531i97073EF207D47390/image-size/large?v=v2&amp;amp;px=999" role="button" title="1647937174410.png" alt="1647937174410.png" /&gt;&lt;/span&gt;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.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1647937261078.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1509532i68B3C03EDF7EDF24/image-size/large?v=v2&amp;amp;px=999" role="button" title="1647937261078.png" alt="1647937261078.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.flexsim.com/en/22.1/Tutorials/AdditionalTools/Tutorial2StatsCollector/2-2StationOutputCollector/2-2StationOutputCollector.html"&gt;https://docs.flexsim.com/en/22.1/Tutorials/AdditionalTools/Tutorial2StatsCollector/2-2StationOutputCollector/2-2StationOutputCollector.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1647936402529.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1509533iE18DD5AFBDE31B25/image-size/large?v=v2&amp;amp;px=999" role="button" title="1647936402529.png" alt="1647936402529.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Mar 2022 08:21:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/pinning-input-versus-time-data-for-sink-to-dashboard/m-p/13555265#M58980</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2022-03-22T08:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Pinning Input versus Time data for sink to dashboard</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/pinning-input-versus-time-data-for-sink-to-dashboard/m-p/13555266#M58981</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/33330/josephai.html" nodeid="33330"&gt;@Joseph Ai&lt;/A&gt;, 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.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 25 Mar 2022 18:45:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/pinning-input-versus-time-data-for-sink-to-dashboard/m-p/13555266#M58981</guid>
      <dc:creator>ryan_c10</dc:creator>
      <dc:date>2022-03-25T18:45:06Z</dc:date>
    </item>
  </channel>
</rss>

