<?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: Adding Additional flow item for every completion of a batch in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/adding-additional-flow-item-for-every-completion-of-a-batch/m-p/13599966#M93903</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 My bad, no the new item should not be created at the source. The source I was referring to, in theory, was a source attached to the queue at the end of the processor, however it looks like that is not needed. The new flow item should should leave the queue after every 4 units that pass through the queue. What would these edits look like in the simulation? 
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Thank you&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 25 Jul 2023 17:00:09 GMT</pubDate>
    <dc:creator>browna15</dc:creator>
    <dc:date>2023-07-25T17:00:09Z</dc:date>
    <item>
      <title>Adding Additional flow item for every completion of a batch</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/adding-additional-flow-item-for-every-completion-of-a-batch/m-p/13599962#M93899</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 17.1.6 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;In my simulation, once a batch of 4 passes through the queue for just processed units, a new flow item of different type is to be released into the same queue and exit once the four units leave. What I have tried is using a global variable that increments by 1 for each unit that passes through the final processing queue and when the global variable is divisible by 4, trigger a source to release one unit of the new flow type. Let me know if this is in the correct realm of approaching the problem as I was still unsuccessful, mainly when it came to controlling the source releasing. I have attached a fresh version of my set up. For context, the processor alternates between the red and green units every 4 units. &lt;/P&gt;
 &lt;P&gt;Thank for the input!&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/71600-batchingnewitem.fsm" target="_blank"&gt;BatchingNewItem.fsm&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Jul 2023 14:30:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/adding-additional-flow-item-for-every-completion-of-a-batch/m-p/13599962#M93899</guid>
      <dc:creator>browna15</dc:creator>
      <dc:date>2023-07-25T14:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Additional flow item for every completion of a batch</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/adding-additional-flow-item-for-every-completion-of-a-batch/m-p/13599963#M93900</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/43045/browna15.html" nodeid="43045"&gt;@browna15&lt;/A&gt; ,&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/71624-batchingnewitem.fsm" target="_blank"&gt;batchingnewitem.fsm&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;Yes you can do this with a global variable to track the current type being processed to create a new item of the next type. If I understand correctly, you want 4 items of type 1 (red) to be processed, then when all 4 have finished and pass through Queue3, you want to create a new item of the new type (i.e. Type 2 (green)) at the respective source. I'm not sure if you can trigger a source to do this but we can create the same logic in process flow.&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1690301451332.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1518569iC4E1FBE2402FB6C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="1690301451332.png" alt="1690301451332.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="updatetype.gif"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1518574i227DEFE4037B88D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="updatetype.gif" alt="updatetype.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;This keeps track of items exiting Queue3. After 4 have been processed, we update the CurrentType global variable and make a new item of the new type at the correct entry transfer. Hope this helps!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Jul 2023 16:13:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/adding-additional-flow-item-for-every-completion-of-a-batch/m-p/13599963#M93900</guid>
      <dc:creator>carter-walch</dc:creator>
      <dc:date>2023-07-25T16:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Additional flow item for every completion of a batch</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/adding-additional-flow-item-for-every-completion-of-a-batch/m-p/13599964#M93901</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Hi Carter, thanks for the response! I think I missed an important detail to the behavior of the system but its similar to the current set up. Is it possible to have the original 4 pass through the queue then once the last unit of that group of 4 leaves, it creates a new flow item that follows the last unit of the group of 4 as opposed to batching 4 units into one flow item?
 &lt;P&gt;&lt;BR /&gt;Thanks for the consideration.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Jul 2023 16:37:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/adding-additional-flow-item-for-every-completion-of-a-batch/m-p/13599964#M93901</guid>
      <dc:creator>browna15</dc:creator>
      <dc:date>2023-07-25T16:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Additional flow item for every completion of a batch</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/adding-additional-flow-item-for-every-completion-of-a-batch/m-p/13599965#M93902</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Yes of course! I believe the model is set up to accomplish what you are describing. I may not have explained that the batch activity in the process flow is simply counting 4 items to pass through the queue. It is not batching them together into one flow item. But rather, it represents a counter such that every 4 items, we create a new flow item.&lt;/P&gt;
 &lt;P&gt;Is it still correct that you want the new item to be created at the source?&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Jul 2023 16:55:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/adding-additional-flow-item-for-every-completion-of-a-batch/m-p/13599965#M93902</guid>
      <dc:creator>carter-walch</dc:creator>
      <dc:date>2023-07-25T16:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Additional flow item for every completion of a batch</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/adding-additional-flow-item-for-every-completion-of-a-batch/m-p/13599966#M93903</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 My bad, no the new item should not be created at the source. The source I was referring to, in theory, was a source attached to the queue at the end of the processor, however it looks like that is not needed. The new flow item should should leave the queue after every 4 units that pass through the queue. What would these edits look like in the simulation? 
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Thank you&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Jul 2023 17:00:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/adding-additional-flow-item-for-every-completion-of-a-batch/m-p/13599966#M93903</guid>
      <dc:creator>browna15</dc:creator>
      <dc:date>2023-07-25T17:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Additional flow item for every completion of a batch</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/adding-additional-flow-item-for-every-completion-of-a-batch/m-p/13599967#M93904</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;No worries! That makes sense, the only thing you would need to change is where the object is created. Just change the create object activity to create the new flow item in Queue3. I also added a breathe delay so that the new item follows behind the fourth item. Is this more accurate?&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1690305488324.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1518571i18ADFD5121B09CCF/image-size/large?v=v2&amp;amp;px=999" role="button" title="1690305488324.png" alt="1690305488324.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;EM&gt;For this gif I slowed down the model when the fourth item finishes so you can see the new item being created:&lt;span class="lia-inline-image-display-wrapper" image-alt="123.gif"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1518577iF11B3112045B68A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="123.gif" alt="123.gif" /&gt;&lt;/span&gt;&lt;/EM&gt;&lt;/P&gt;
 &lt;P&gt;&lt;EM&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/71629-batchingnewitem.fsm" target="_blank"&gt;batchingnewitem.fsm&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;
 &lt;P&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Jul 2023 17:23:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/adding-additional-flow-item-for-every-completion-of-a-batch/m-p/13599967#M93904</guid>
      <dc:creator>carter-walch</dc:creator>
      <dc:date>2023-07-25T17:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Additional flow item for every completion of a batch</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/adding-additional-flow-item-for-every-completion-of-a-batch/m-p/13599968#M93905</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 This works perfect. Thank you so much!
&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Jul 2023 17:35:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/adding-additional-flow-item-for-every-completion-of-a-batch/m-p/13599968#M93905</guid>
      <dc:creator>browna15</dc:creator>
      <dc:date>2023-07-25T17:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Additional flow item for every completion of a batch</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/adding-additional-flow-item-for-every-completion-of-a-batch/m-p/13599969#M93906</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Sure thing! Happy to help&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Jul 2023 17:40:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/adding-additional-flow-item-for-every-completion-of-a-batch/m-p/13599969#M93906</guid>
      <dc:creator>carter-walch</dc:creator>
      <dc:date>2023-07-25T17:40:15Z</dc:date>
    </item>
  </channel>
</rss>

