<?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: How to calculate inter-arrival time at a conveyor decision point? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-calculate-inter-arrival-time-at-a-conveyor-decision-point/m-p/13561576#M63905</link>
    <description>&lt;P&gt;This is perfect. Exactly what I was looking for. Thanks for the thorough walkthrough!&lt;/P&gt;</description>
    <pubDate>Tue, 09 Oct 2018 20:00:58 GMT</pubDate>
    <dc:creator>christopher_s2</dc:creator>
    <dc:date>2018-10-09T20:00:58Z</dc:date>
    <item>
      <title>How to calculate inter-arrival time at a conveyor decision point?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-calculate-inter-arrival-time-at-a-conveyor-decision-point/m-p/13561572#M63901</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 18.2.2 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;I feel like this is a simple question, but I am having difficulty solving it. &lt;/P&gt;
&lt;P&gt;I have a power and free conveyor that has a set number of containers on it. They make a loop around the conveyor. I have a decision point on the conveyor, and I just want to detect the inter-arrival time between containers, in seconds, and display as a histogram. What statistic collector options do I need to use to do this? I tried to use intervals, but I can't figure out how to use the time from the last container. It tries to take the interval from the same container, resulting in a zero. &lt;/P&gt;
&lt;P&gt;Decision Point:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="14870-1.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1497899iB30B006DAC5899C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="14870-1.png" alt="14870-1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Container OnArrival, start timer:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="14871-2.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1497900iCFA3C756B095E0BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="14871-2.png" alt="14871-2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Waiting for next container, timer counting:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="14872-1.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1497901iC5B4DE264AFD8D90/image-size/large?v=v2&amp;amp;px=999" role="button" title="14872-1.png" alt="14872-1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Next container OnArrival, stop counting on first timer, start new timer, display first timer result on histogram:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="14871-2.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1497902i4A02918D688022ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="14871-2.png" alt="14871-2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2018 19:07:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-calculate-inter-arrival-time-at-a-conveyor-decision-point/m-p/13561572#M63901</guid>
      <dc:creator>christopher_s2</dc:creator>
      <dc:date>2018-10-08T19:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate inter-arrival time at a conveyor decision point?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-calculate-inter-arrival-time-at-a-conveyor-decision-point/m-p/13561573#M63902</link>
      <description>&lt;P&gt;I'm not sure if this will give you exactly what you're looking for, but you could try using a Tracked Variable.   When an item arrives set the first time to a global variable, then when the second item arrives set the second time to a global variable.  Subtract the first time from  the second, and save the result to a tracked variable.  Then assign the first time as the second time (so the process repeats when the next item is coming in) &lt;/P&gt;&lt;P&gt;Then the Tracked variable can be charted, because it will keep a record of the previous time intervals recorded.&lt;/P&gt;&lt;P&gt;Is this along the lines of what you're looking for?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 11:19:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-calculate-inter-arrival-time-at-a-conveyor-decision-point/m-p/13561573#M63902</guid>
      <dc:creator>sam_stubbsYXX86</dc:creator>
      <dc:date>2018-10-09T11:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate inter-arrival time at a conveyor decision point?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-calculate-inter-arrival-time-at-a-conveyor-decision-point/m-p/13561574#M63903</link>
      <description>&lt;P&gt;Hi Sam. Yes, that will work. Can you provide a brief overview of how to set that up? Do I need to do it in the process flow? Or can I do it from the Decision Point properties?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 11:22:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-calculate-inter-arrival-time-at-a-conveyor-decision-point/m-p/13561574#M63903</guid>
      <dc:creator>christopher_s2</dc:creator>
      <dc:date>2018-10-09T11:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate inter-arrival time at a conveyor decision point?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-calculate-inter-arrival-time-at-a-conveyor-decision-point/m-p/13561575#M63904</link>
      <description>&lt;P&gt;Here is a model that displays the histogram you want:&lt;/P&gt;&lt;P&gt;&lt;A id="14882" href="https://answers.flexsim.com/storage/attachments/14882-inter-arrival-histogram.fsm"&gt;inter-arrival-histogram.fsm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The model is not too important, except that items flow past a decision point:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="14883-inter-arrival-model.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1497893i2A6EBFE763531E2F/image-size/large?v=v2&amp;amp;px=999" role="button" title="14883-inter-arrival-model.png" alt="14883-inter-arrival-model.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I made this model just as a demonstration, but the approach should work in your model as well.&lt;/P&gt;&lt;P&gt;First, I made a Process Flow, to help with statistics:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="14884-inter-arrival-flow.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1497894i6559B78AAA1C152E/image-size/large?v=v2&amp;amp;px=999" role="button" title="14884-inter-arrival-flow.png" alt="14884-inter-arrival-flow.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This token in this Process Flow listens to the Decision Point, and "remembers" the time of the previous item by storing the value on a label. Every time an item arrives, the token updates its label that stores the previous time.&lt;/P&gt;&lt;P&gt;But the previous time is only half the story. We still need to get the different between when two items arrive. This is where I used the Statistics Collector. I created the Statistics Collector, and I have it listen to the OnExit of the Wait for Next Arrival activity. When that event occurs, the simulation time will be the time of the next arrival, and the token will remember the time of the previous arrival. So the Row Mode is Add Per Event, because we want a new row every time the token exits the activity. The column subtracts the previous time from the current time, which is the inter-arrival time:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="14885-inter-arrival-collector.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1497896i29C6D91B4A6CA133/image-size/large?v=v2&amp;amp;px=999" role="button" title="14885-inter-arrival-collector.png" alt="14885-inter-arrival-collector.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This Statistics Collector produces a list of inter-arrival times, which is perfect for a histogram. Here are the settings for the histogram:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="14886-inter-arrival-histogram-settings.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1497897iBD379E2654B29F87/image-size/large?v=v2&amp;amp;px=999" role="button" title="14886-inter-arrival-histogram-settings.png" alt="14886-inter-arrival-histogram-settings.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And that should produce a histogram:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="14887-inter-arrival-histogram.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1497898iEE2C5C7376CA4058/image-size/large?v=v2&amp;amp;px=999" role="button" title="14887-inter-arrival-histogram.png" alt="14887-inter-arrival-histogram.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 14:20:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-calculate-inter-arrival-time-at-a-conveyor-decision-point/m-p/13561575#M63904</guid>
      <dc:creator>JordanLJohnson</dc:creator>
      <dc:date>2018-10-09T14:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate inter-arrival time at a conveyor decision point?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-calculate-inter-arrival-time-at-a-conveyor-decision-point/m-p/13561576#M63905</link>
      <description>&lt;P&gt;This is perfect. Exactly what I was looking for. Thanks for the thorough walkthrough!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 20:00:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-calculate-inter-arrival-time-at-a-conveyor-decision-point/m-p/13561576#M63905</guid>
      <dc:creator>christopher_s2</dc:creator>
      <dc:date>2018-10-09T20:00:58Z</dc:date>
    </item>
  </channel>
</rss>

