<?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: Control the queue openoutput order, and openoutput one by one in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555596#M59251</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You could also do this with a simple Process Flow that opens a queue's output, waits until it is empty, closes the output and then moves on to the next queue based on the table.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1677484243714.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515616i68910971A07232D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="1677484243714.png" alt="1677484243714.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/64804-queue-openoutput-order-fm.fsm" target="_blank"&gt;queue-openoutput-order-fm.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 27 Feb 2023 07:50:57 GMT</pubDate>
    <dc:creator>moehlmann_fe</dc:creator>
    <dc:date>2023-02-27T07:50:57Z</dc:date>
    <item>
      <title>Control the queue openoutput order, and openoutput one by one</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555594#M59249</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 16.1.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Now I have a globaltable called 'Order' and a model as the following picture, I focus on Queue1, Queue2, Queue3.&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="machine-order.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515647iF28AEDF3CD99B5F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="machine-order.png" alt="machine-order.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="model.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515648i5198344B6031B6D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="model.png" alt="model.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;I hope that when the model starts simulating, Queue1, Queue2, Queue3 were 'Closeoutput'. And I can determine the order of 'Openoutput' of Queue1, Queue2, and Queue3 based on the values in the Order table. And only one queue is allowed to openoutput at a time.&lt;/P&gt;
 &lt;P&gt;For example, the values in the order table are as shown in the upper picture, left to right were 1, 2, 3. So the order of 'Openoutput' of Queue1, Queue2, and Queue3 were:&lt;/P&gt;
 &lt;P&gt;Queue1 Openoutput&lt;/P&gt;
 &lt;P&gt;\/&lt;/P&gt;
 &lt;P&gt;Queue1 Closeoutput&lt;/P&gt;
 &lt;P&gt;\/&lt;/P&gt;
 &lt;P&gt;Queue2 Openoutput&lt;/P&gt;
 &lt;P&gt;\/&lt;/P&gt;
 &lt;P&gt;Queue2 Closeoutput&lt;/P&gt;
 &lt;P&gt;\/&lt;/P&gt;
 &lt;P&gt;Queue3 Openoutput&lt;/P&gt;
 &lt;P&gt;\/&lt;/P&gt;
 &lt;P&gt;Queue3 Closeoutput&lt;/P&gt;
 &lt;P&gt;After Queue3 Closeoutput, it goes back to Queue1 Openoutput again, and this process repeats until the simulation ends.&lt;/P&gt;
 &lt;P&gt;In addition, I also hope that when a Queue is Openoutput, it can remain open until all the items in the Queue are shipped before Closeoutput.&lt;/P&gt;
 &lt;P&gt;The scenario I described above is that I hope to simulate the operation of one machine at a time, and be able to control the order of machine operations based on the table.&lt;/P&gt;
 &lt;P&gt;May I know if it is possible to achieve the scenario described above? Thank you!&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/64776-queue-openoutput-order.fsm" target="_blank"&gt;Queue Openoutput Order.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 26 Feb 2023 06:30:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555594#M59249</guid>
      <dc:creator>joe_l6</dc:creator>
      <dc:date>2023-02-26T06:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Control the queue openoutput order, and openoutput one by one</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555595#M59250</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Trigger Tab of queue: On Exit: Picklist option close output &amp;gt; condition current subnodes.length == 1: involved object current&lt;/P&gt;&lt;P&gt;Same object picklist option open input &amp;gt; same condition: involved object next to open input by source code snippet or sampler tool.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Feb 2023 07:29:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555595#M59250</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2023-02-27T07:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Control the queue openoutput order, and openoutput one by one</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555596#M59251</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You could also do this with a simple Process Flow that opens a queue's output, waits until it is empty, closes the output and then moves on to the next queue based on the table.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1677484243714.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515616i68910971A07232D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="1677484243714.png" alt="1677484243714.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/64804-queue-openoutput-order-fm.fsm" target="_blank"&gt;queue-openoutput-order-fm.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Feb 2023 07:50:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555596#M59251</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2023-02-27T07:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Control the queue openoutput order, and openoutput one by one</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555597#M59252</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi &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;
 &lt;P&gt;Thank you for your solution. It seems that I encountered an error while downloading the model file. I'm not sure if it's because the file upload failed on your end. Could you please upload the model file again? Thank you!&lt;span class="lia-inline-image-display-wrapper" image-alt="error.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515618iC875C3AC7D90156B/image-size/large?v=v2&amp;amp;px=999" role="button" title="error.png" alt="error.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Feb 2023 14:02:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555597#M59252</guid>
      <dc:creator>joe_l6</dc:creator>
      <dc:date>2023-02-27T14:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Control the queue openoutput order, and openoutput one by one</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555598#M59253</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Sorry, the forum sometimes loses attachments when editing a post.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/64828-queue-openoutput-order-fm.fsm" target="_blank"&gt;queue-openoutput-order-fm.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Feb 2023 17:53:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555598#M59253</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2023-02-27T17:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Control the queue openoutput order, and openoutput one by one</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555599#M59254</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&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;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="order.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515619i588C7254CE87DB6D/image-size/large?v=v2&amp;amp;px=999" role="button" title="order.png" alt="order.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pf.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515621i38685BDF4A94848D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pf.png" alt="pf.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;I'm trying to change the numerical order of the Order table to 3, 2, 1. And when setting the queue label for Token, it will read the values inside the table. Finally, make the Source generate the second round of items at 260 seconds.&lt;/P&gt;
 &lt;P&gt;I found that the first round runs smoothly.(items are sent out from Queue3 to Queue1 in order.) But when it comes to the second round, items will be sent out starting from Queue2 instead. Is it caused by my incomplete settings as mentioned above? Thank you!&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/64853-queue-openoutput-order-v2.fsm" target="_blank"&gt;queue-openoutput-order-v2.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 Feb 2023 03:17:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555599#M59254</guid>
      <dc:creator>joe_l6</dc:creator>
      <dc:date>2023-02-28T03:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Control the queue openoutput order, and openoutput one by one</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555600#M59255</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;What happens is that the first item that enters Queue3 exits immediately before other items get created, triggering the token to continue and switch the output.&lt;/P&gt;&lt;P&gt;You can place an extra activity in the process flow that checks whether the queue is actually empty after a 0s delay to fix this case.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1677569872851.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515626i2A90A074D70120DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="1677569872851.png" alt="1677569872851.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 Feb 2023 07:38:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555600#M59255</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2023-02-28T07:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Control the queue openoutput order, and openoutput one by one</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555601#M59256</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Thanks 
 &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'll give it a try. Thank you!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 Mar 2023 03:58:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555601#M59256</guid>
      <dc:creator>joe_l6</dc:creator>
      <dc:date>2023-03-01T03:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Control the queue openoutput order, and openoutput one by one</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555602#M59257</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi &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;
 &lt;P&gt;Now I have the following scenario. &lt;span class="lia-inline-image-display-wrapper" image-alt="model.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515629iC0336F45A7701545/image-size/large?v=v2&amp;amp;px=999" role="button" title="model.png" alt="model.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="table.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515630iBA25F16B21109520/image-size/large?v=v2&amp;amp;px=999" role="button" title="table.png" alt="table.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;Use the "Order" table to determine the order of the machine, and use the 'BoxType_Process_Stage' table to determine the route of the Box.&lt;/P&gt;
 &lt;P&gt;[Determine the order of the machine]&lt;/P&gt;
 &lt;P&gt;Using the "Order" table.&lt;/P&gt;
 &lt;P&gt;[Determine the route of the Box]&lt;/P&gt;
 &lt;P&gt;'BoxType_Process_Stage' table will record the Stage of BoxType at each Process. Wherein, the numerical values 1~4 of the Stage correspond to Queue1~Queue4, respectively.&lt;/P&gt;
 &lt;P&gt;When a Box is produced from the Source, it will have two types of labels: BoxType and Process.&lt;/P&gt;
 &lt;P&gt;"Queue" will use the two types of labels, BoxType and Process, on the Box, combined with the table "BoxType_Process_Stage" to generate the Stage value.&lt;/P&gt;
 &lt;P&gt;When the operation of the three Processors is completed, the value of the label "Process" on the Box will be incremented by 1, and then the Box will be sent back to the Queue.&lt;/P&gt;
 &lt;P&gt;Therefore, when the Source or Processor sends the Box back to the Queue, the Queue calculates a new value for the label "Stage", and each Queue pulls the Box according to the corresponding Stage value.&lt;/P&gt;
 &lt;P&gt;[Discovered a problem]&lt;/P&gt;
 &lt;P&gt;The Box is stuck in Queue2 after the Processor completes its operation, but Queue2 is not enabled for output.&lt;/P&gt;
 &lt;P&gt;How should I set it up to execute the above scenario smoothly? Thank you!&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/65153-box-route-and-machine-order.fsm" target="_blank"&gt;box route and machine order.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Mar 2023 03:04:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555602#M59257</guid>
      <dc:creator>joe_l6</dc:creator>
      <dc:date>2023-03-06T03:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Control the queue openoutput order, and openoutput one by one</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555603#M59258</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;As the item exits immediately upon opening the output, the Wait for Event activitiy is never triggered, because the queue is already empty when the token reaches it.&lt;/P&gt;&lt;P&gt;You could implement a second case. If the queue is not empty when the output is about to be opened you skip the Wait for Event and only go back to if the queue is not yet empty.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1678086590253.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515631iD40471AA2FA5EFA5/image-size/large?v=v2&amp;amp;px=999" role="button" title="1678086590253.png" alt="1678086590253.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Mar 2023 07:10:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555603#M59258</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2023-03-06T07:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Control the queue openoutput order, and openoutput one by one</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555604#M59259</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;You could also consider moving the open output to the On Listener Initialized trigger of the wait for event.&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Mar 2023 12:01:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555604#M59259</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2023-03-06T12:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Control the queue openoutput order, and openoutput one by one</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555605#M59260</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi &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;
 &lt;P&gt;Now I try to add the second box and it starts with Process2.&lt;span class="lia-inline-image-display-wrapper" image-alt="2boxs.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515636i87E6D2F796A8D2CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="2boxs.png" alt="2boxs.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;When simulating, the Process1 and Process2 will operate at the same time. In the end, only the second box will finish the route, first box will stuck at Queue2.&lt;/P&gt;
 &lt;P&gt;And I notice that when the model starts, token value is as below.&lt;span class="lia-inline-image-display-wrapper" image-alt="token.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515637i8F0400EEEBD4A8E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="token.png" alt="token.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;My ideal scenario is when I set the table as below:&lt;span class="lia-inline-image-display-wrapper" image-alt="table.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515638iA230A993871D4AAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="table.png" alt="table.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;Processor1 will operate the first box. At the same time, second box will wait in Queue2.&lt;/P&gt;
 &lt;P&gt;When processor1 finish operated the first box, the macine order moves to Processor2. And Processor2 operates the first and second box, until Processor3.&lt;/P&gt;
 &lt;P&gt;How should I set it up to execute the above scenario smoothly? Thank you!&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/65245-box-route-and-machine-order.fsm" target="_blank"&gt;box route and machine order.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Mar 2023 15:01:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555605#M59260</guid>
      <dc:creator>joe_l6</dc:creator>
      <dc:date>2023-03-07T15:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Control the queue openoutput order, and openoutput one by one</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555606#M59261</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You could have the Wait for Event listen to items exiting the processor. Then, if both the queue and processor are empty, shift the open port to the next queue.&lt;/P&gt;&lt;P&gt;To pull the newer item first, you can use the "Pull Best Item" option the processor's Pull Strategy. In the attached model it almost pulls the newest item (LIFO), but you could also use labels to give certain items priorty over others.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/65238-box-route-and-machine-order-1.fsm" target="_blank"&gt;box-route-and-machine-order_1.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Mar 2023 15:32:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555606#M59261</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2023-03-07T15:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Control the queue openoutput order, and openoutput one by one</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555607#M59262</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thanks &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;
 &lt;P&gt;I'll keep give it a try. Thanks!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Mar 2023 10:44:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555607#M59262</guid>
      <dc:creator>joe_l6</dc:creator>
      <dc:date>2023-03-08T10:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Control the queue openoutput order, and openoutput one by one</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555608#M59263</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P id="isPasted"&gt;Hi &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;
 &lt;P&gt;sorry I got another question about the same model.&lt;/P&gt;
 &lt;P&gt;Now I make the 2nd box arrives at time 50s.&lt;span class="lia-inline-image-display-wrapper" image-alt="2-boxes.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515641i007ADBBC7E7E2C13/image-size/large?v=v2&amp;amp;px=999" role="button" title="2-boxes.png" alt="2-boxes.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;In the ideal scenario, 2nd box will arrives at time 50s and goes to queue2 and be operated by processor2. But it seems like 2nd box will stuck at queue2 at time 50s.&lt;span class="lia-inline-image-display-wrapper" image-alt="time50-box2-stuck.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515642i57D7C183B9684D5B/image-size/large?v=v2&amp;amp;px=999" role="button" title="time50-box2-stuck.png" alt="time50-box2-stuck.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;I think it's because the logic in 'Wait for Event' is 'OnExit'. Queue1 can't trigger the OnExit so it won't go to Queue2.&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="token-stuck.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515643iC5962C6D6B4620A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="token-stuck.png" alt="token-stuck.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;How can I set up the model to keep the queues continuously rotating open? For example, when there are no boxes in the current queue and processor after a period of time, the next queue will be opened instead? The queues will continuously rotating open until the simulation ends. Thanks!&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/65973-box-route-and-machine-order-1.fsm" target="_blank"&gt;box-route-and-machine-order-1.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Mar 2023 12:54:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555608#M59263</guid>
      <dc:creator>joe_l6</dc:creator>
      <dc:date>2023-03-20T12:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Control the queue openoutput order, and openoutput one by one</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555609#M59264</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;If it is Ok that the item has to wait some time, you can simply add a maximum wait time to the "Wait for Event" activity.&lt;/P&gt;&lt;P&gt;(The wait time can be smaller than this, though very small values will have an impact on how fast the model can run, due to the frequent checks).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="capture.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515644i501197A8115150A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture.png" alt="capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Mar 2023 16:29:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555609#M59264</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2023-03-20T16:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Control the queue openoutput order, and openoutput one by one</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555610#M59265</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Thanks 
 &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;it solves my problem perfectly, thank you!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Mar 2023 12:04:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555610#M59265</guid>
      <dc:creator>joe_l6</dc:creator>
      <dc:date>2023-03-21T12:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Control the queue openoutput order, and openoutput one by one</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555611#M59266</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi &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;
 &lt;P&gt;I would like to ask if it is possible to set up the ProcessFlow to only work from 0-12 hours and then stop, and have another ProcessFlow start working from 12-24 hours.&lt;/P&gt;
 &lt;P&gt;Currently, I am using one ProcessFlow along with the 'Order' table to control the opening and closing sequence of three queues. However, in future models, I hope to have a new logic for the opening and closing sequence of three queues after 12 hours.&lt;/P&gt;
 &lt;P&gt;I hope to have two different ProcessFlows to control the queues for the 0-12 hour period and the 12-24 hour period separately.&lt;/P&gt;
 &lt;P&gt;For example, the opening and closing sequence for the queues during the 0-12 hour period is 1, 2, 3, while the opening and closing sequence for the queues during the 12-24 hour period is 3, 2, 1.&lt;/P&gt;
 &lt;P&gt;I will add a second column (12-24hr) in the Order table, and I hope the second ProcessFlow will only read the values in that column.&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2shifts.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515646i1D9A5CB631FA6CFA/image-size/large?v=v2&amp;amp;px=999" role="button" title="2shifts.png" alt="2shifts.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;Is it possible to set up the ProcessFlow to only work from 0-12 hours and then stop, and have another ProcessFlow start working from 12-24 hours? Thank you!&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/66106-machine-order-2shifts.fsm" target="_blank"&gt;machine order_2shifts.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 22 Mar 2023 12:47:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555611#M59266</guid>
      <dc:creator>joe_l6</dc:creator>
      <dc:date>2023-03-22T12:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Control the queue openoutput order, and openoutput one by one</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555612#M59267</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;I wouldn't build a separate second process flow but instead change the logic in the existing one. This eliminates the possibility that the two flows might clash at the crossover time.&lt;/P&gt;&lt;P&gt;You can use "getmodelunit(CURRENT_HOUR_OF_DAY)" to use different logic depending on the time of day. (Minutes etc. can also be read, you can look up the command details in the command helper.)&lt;/P&gt;&lt;P&gt;In the case you describe above you could define a "row" label on the token, which you update every time the token restarts the loop.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/66107-machine-order-2shifts-fm.fsm" target="_blank"&gt;machine-order-2shifts-fm.fsm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For more complex differences, you can send the token to a different section of the process flow in a decide activity.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 22 Mar 2023 13:16:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555612#M59267</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2023-03-22T13:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Control the queue openoutput order, and openoutput one by one</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555613#M59268</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thanks &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;
 &lt;P&gt;"getmodelunit(CURRENT_HOUR_OF_DAY)" is a very helpful command for my problem. Thank you so much!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 22 Mar 2023 16:15:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/control-the-queue-openoutput-order-and-openoutput-one-by-one/m-p/13555613#M59268</guid>
      <dc:creator>joe_l6</dc:creator>
      <dc:date>2023-03-22T16:15:28Z</dc:date>
    </item>
  </channel>
</rss>

