<?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 Collect values from statistical distribution in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/collect-values-from-statistical-distribution/m-p/13538883#M46114</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 20.0.10 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello,&lt;/P&gt;
 &lt;P&gt;I have a query regarding statistical distribution, I want to record the distribution value assigned for each item being processed out of a processor.&lt;/P&gt;
 &lt;P&gt;Suppose I use normal distribution, then I want to record values for each part from the distribution range. Basically, I want to know the distribution value or process time assigned for each part.&lt;/P&gt;
 &lt;P&gt;How to do this?&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/55268-model.fsm" target="_blank"&gt;model.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 21 Jul 2022 03:00:05 GMT</pubDate>
    <dc:creator>anjunittur123</dc:creator>
    <dc:date>2022-07-21T03:00:05Z</dc:date>
    <item>
      <title>Collect values from statistical distribution</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/collect-values-from-statistical-distribution/m-p/13538883#M46114</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 20.0.10 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello,&lt;/P&gt;
 &lt;P&gt;I have a query regarding statistical distribution, I want to record the distribution value assigned for each item being processed out of a processor.&lt;/P&gt;
 &lt;P&gt;Suppose I use normal distribution, then I want to record values for each part from the distribution range. Basically, I want to know the distribution value or process time assigned for each part.&lt;/P&gt;
 &lt;P&gt;How to do this?&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/55268-model.fsm" target="_blank"&gt;model.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Jul 2022 03:00:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/collect-values-from-statistical-distribution/m-p/13538883#M46114</guid>
      <dc:creator>anjunittur123</dc:creator>
      <dc:date>2022-07-21T03:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Collect values from statistical distribution</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/collect-values-from-statistical-distribution/m-p/13538884#M46115</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;The attached model contains two examples of how you can collect that data.&lt;/P&gt;&lt;P&gt;StatisticsCollector1 works the same as the Alessio Merlo's model &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/questions/85527/about-statistical-distribution.html" target="_blank"&gt;from this post&lt;/A&gt;. It measures the time the items spend on the processor by listening to its entry and exit event. When an item enters, a new row is created in the collector's internal table with the item as the 'rowValue'. The row value is an identifier for a row. If another row would be created with the same row value, the collector will instead update the already existing row.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1658388694521.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1511588i3AAB61D29A7AB0CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="1658388694521.png" alt="1658388694521.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1658388709779.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1511589i6882547F8CBB39F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="1658388709779.png" alt="1658388709779.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When the row is first created when the item enters the combiner, the entry time is written to the first column. When the item exits, the second and third column are updated (which is why the 'rowValue' is used) to store the exit time and the difference between the two - the process time. The process times can then the displayed in a histogram chart.&lt;/P&gt;&lt;P&gt;StatisticCollector2 instead listens to the 'process time' event of the processor, the moment the process time is determined. The process time option was edited so it doesn't just return the value of the chosen distribution but also writes that value to a label on the processer first.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1658388673005.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1511590iCFB5FCD687FB9EFD/image-size/large?v=v2&amp;amp;px=999" role="button" title="1658388673005.png" alt="1658388673005.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This label is then read by the statistics collector. Both statistics collector will in most cases store the same data. The difference is that values will be added to the second one as soon as the process starts, whereas the first one has to wait for the process to finish. The measured times of the first one would also include breakdowns of the processor. So if you are only interested in the output of the statistical distribution, the second option is better.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/55294-distribution-histogram-fm.fsm" target="_blank"&gt;distribution_histogram_fm.fsm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For more information about statistics collectors, please refer to the &lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/20.0/GettingData/AdvancedDataGathering/UsingStatsCollector/UsingStatsCollector.html" target="_blank"&gt;manual&lt;/A&gt;.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Jul 2022 07:35:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/collect-values-from-statistical-distribution/m-p/13538884#M46115</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2022-07-21T07:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Collect values from statistical distribution</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/collect-values-from-statistical-distribution/m-p/13538885#M46116</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Thank you 
 &lt;A rel="user" href="https://answers.flexsim.com/users/19365/felixmh.html" nodeid="19365"&gt;@Felix Möhlmann&lt;/A&gt; 
 &lt;P&gt;I have a query, if I want to store the values collected from this variable curProcessTime and store in excel. How to do this?&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Jul 2022 10:13:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/collect-values-from-statistical-distribution/m-p/13538885#M46116</guid>
      <dc:creator>anjunittur123</dc:creator>
      <dc:date>2022-07-21T10:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Collect values from statistical distribution</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/collect-values-from-statistical-distribution/m-p/13538886#M46117</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Open the table and directly copy/paste the data into excel.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1658400666988.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1511591iAF7DB5DCD3E41A19/image-size/large?v=v2&amp;amp;px=999" role="button" title="1658400666988.png" alt="1658400666988.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Or set up an export in the &lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/20.0/Reference/Tools/ExcelInterface/ExcelInterface.html" target="_blank"&gt;Excel Import/Export Interface.&lt;/A&gt; You can automate this by first setting up the export, then starting it in code with the 'excelmultitableexport()' command.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1658400627996.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1511592iBC64DCD4A087878B/image-size/large?v=v2&amp;amp;px=999" role="button" title="1658400627996.png" alt="1658400627996.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Jul 2022 10:51:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/collect-values-from-statistical-distribution/m-p/13538886#M46117</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2022-07-21T10:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Collect values from statistical distribution</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/collect-values-from-statistical-distribution/m-p/13538887#M46118</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Thank you , it was really helpful
&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Jul 2022 05:24:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/collect-values-from-statistical-distribution/m-p/13538887#M46118</guid>
      <dc:creator>anjunittur123</dc:creator>
      <dc:date>2022-07-22T05:24:23Z</dc:date>
    </item>
  </channel>
</rss>

