<?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 save control point into list in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-save-control-point-into-list/m-p/13581317#M79214</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Your model should have no exceptions printed to the output console. You have hundreds but make no mention of these - fix these first.&lt;/P&gt;&lt;P&gt;You have inappropriate instances attached to the process flow - they should be agvs (you have just one - taskexecuter1)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1688645075655.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1516920i641502E4BADFB56D/image-size/large?v=v2&amp;amp;px=999" role="button" title="1688645075655.png" alt="1688645075655.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You're also missing the label assignment for 'agv' in the cp prearrival detection.&lt;/P&gt;&lt;P&gt;Your CP arrival detection code should probably not be in this process flow since it would not scale to more than one taskexecuter.  I suggest having a seperate object process flow for the redirection to a random CP.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 06 Jul 2023 12:02:47 GMT</pubDate>
    <dc:creator>jason_lightfoot_adsk</dc:creator>
    <dc:date>2023-07-06T12:02:47Z</dc:date>
    <item>
      <title>How to save control point into list</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-save-control-point-into-list/m-p/13581311#M79208</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 21.2.4 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi there,&lt;BR /&gt;I want to let AGV choose a random path when it enters an intersection, instead of selecting the shortest route. I want to trigger this behavior when AGV enters the cp (ControlPoint_I1) before the intersection.&lt;BR /&gt;I duplicate the AGVWork list and create a RandomCP to save the control points (CP1, CP2, CP3), therefore I could pull random CP from the list using query, &lt;SPAN id="isPasted" style="color: rgb(51, 51, 51); font-family: "&gt;ORDER BY RAND()&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;But how could I save those cps into list?&lt;BR /&gt;I have created 2 models using different PF, I have no idea which is better to achieve my goal.&lt;BR /&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/67746-sample-using-agv-pf.fsm" target="_blank"&gt;sample_using AGV PF.fsm&lt;/A&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/67747-sample-using-general-pf.fsm" target="_blank"&gt;sample_using general PF.fsm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope to get some suggestion, thanks!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 04 May 2023 12:36:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-save-control-point-into-list/m-p/13581311#M79208</guid>
      <dc:creator>e_yiing98</dc:creator>
      <dc:date>2023-05-04T12:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to save control point into list</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-save-control-point-into-list/m-p/13581312#M79209</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Couple things I noticed in your model:&lt;/P&gt;&lt;P&gt;- The &lt;EM&gt;On Arrival&lt;/EM&gt; event only fires when the AGV actually stops at the respective control point. Use the &lt;EM&gt;On Pre Arrival&lt;/EM&gt; event when the AGV might be just passing through.&lt;/P&gt;&lt;P&gt;- The travel activity would only start after the AGV has completed its current task (-sequence). With other network types, you would have to create a preempting task sequence. With the AGV network you can use the Control -&amp;gt; AGV -&amp;gt; Redirect option in the custom code activity.&lt;/P&gt;&lt;P&gt;To get the control points onto the list you can add them to the initial content.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1683206358474.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1516905i1CCE111D23BCF690/image-size/large?v=v2&amp;amp;px=999" role="button" title="1683206358474.png" alt="1683206358474.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would then suggest to check the &lt;EM&gt;Leave Entries On List&lt;/EM&gt; option in the Pull From List activity, so they are never actually removed from the list. (Saves you having to push them back)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1683206335287.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1516907i6EBFD36EA04F3B6C/image-size/large?v=v2&amp;amp;px=999" role="button" title="1683206335287.png" alt="1683206335287.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/67759-sample-using-general-pf-fm.fsm" target="_blank"&gt;sample-using-general-pf-fm.fsm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If not needed, I would not use the AGV Process Flow in this case. On one hand it keeps its own list of control points based on the NextWork connections. So you would only need to add the ORDER BY clause to the relevant activity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1683206508346.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1516908iD0E4160789BEE338/image-size/large?v=v2&amp;amp;px=999" role="button" title="1683206508346.png" alt="1683206508346.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But, since this section of the Process Flow is not used when the AGV is 'unloading mode', you would have to add the logic from the General Process Flow anyway but furthermore make sure that it only activates when the AGV is unloading, as to not interfere with the rest of the AGV flow.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 04 May 2023 13:24:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-save-control-point-into-list/m-p/13581312#M79209</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2023-05-04T13:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to save control point into list</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-save-control-point-into-list/m-p/13581313#M79210</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/28926/emilyk.html" nodeid="28926"&gt;@Emily K&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>Tue, 09 May 2023 15:32:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-save-control-point-into-list/m-p/13581313#M79210</guid>
      <dc:creator>Jeanette_Fullmer</dc:creator>
      <dc:date>2023-05-09T15:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to save control point into list</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-save-control-point-into-list/m-p/13581314#M79211</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;DIV style="text-align: center;"&gt;
  &lt;BR /&gt;
 &lt;/DIV&gt;
 &lt;P&gt;&lt;SPAN style="background-color: initial; font-size: 14px;"&gt;&lt;FONT color="#333333"&gt;Hi Felix!!! From the file you provide "&lt;A rel="nofollow" id="isPasted" href="https://answers.flexsim.com/storage/attachments/67759-sample-using-general-pf-fm.fsm"&gt;sample-using-general-pf-fm.fsm&lt;/A&gt;", you used the method ORDER BY RAND() to let the AGV choose the path by random. However, everytime I reset the model and run again it will have the same result. I wonder if there is a way that can let the AGV have a different path selection every time I run the model again~&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="background-color: initial; font-size: 14px;"&gt;&lt;FONT color="#333333"&gt;THANK YOU!&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
 &lt;DIV style="position: relative; min-height: 1px; padding: 0px; float: left; width: 691.167px; color: rgb(51, 51, 51); font-family: "&gt;
  &lt;BR /&gt;
 &lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 02 Jul 2023 15:44:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-save-control-point-into-list/m-p/13581314#M79211</guid>
      <dc:creator>karen8</dc:creator>
      <dc:date>2023-07-02T15:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to save control point into list</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-save-control-point-into-list/m-p/13581315#M79212</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;This is normal in simulation models where you want to be able to repeat /debug /reduce variance.&lt;P&gt;You can change the replication number (which determines the random number stream initialization) from the experimenter or uncheck repeat streams - I'd recommend the former for the above reasons.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 02 Jul 2023 15:47:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-save-control-point-into-list/m-p/13581315#M79212</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2023-07-02T15:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to save control point into list</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-save-control-point-into-list/m-p/13581316#M79213</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;SPAN style="font-size: 14px; font-family: Arial, Helvetica, sans-serif;"&gt;Got it thks! &lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="font-size: 14px; font-family: Arial, Helvetica, sans-serif;"&gt;Now I tried to apply the random select path method which &lt;/SPAN&gt;&lt;SPAN id="isPasted" style="color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; float: none; display: inline !important;"&gt;Felix used in the file &lt;/SPAN&gt;&lt;SPAN style="font-size: 14px; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;A rel="nofollow" href="https://answers.flexsim.com/storage/attachments/67759-sample-using-general-pf-fm.fsm"&gt;&lt;SPAN style="color: rgb(61, 142, 185);"&gt;sample-using-general-pf-fm.fsm&lt;/SPAN&gt;&lt;/A&gt; in my file&lt;SPAN style="color: rgb(61, 142, 185);"&gt; &lt;/SPAN&gt;&lt;SPAN id="isPasted" style="font-size: 14px; font-family: Arial, Helvetica, sans-serif; color: rgb(61, 142, 185);"&gt;&lt;SPAN style="font-size: 14px; font-family: Arial, Helvetica, sans-serif;"&gt;random_test2.fsm&lt;/SPAN&gt;&lt;/SPAN&gt;. My goal is to random select path (randomly select &lt;SPAN id="isPasted" style="font-size: 14px; font-family: Arial, Helvetica, sans-serif;"&gt;ControlPoint3, &lt;SPAN style="font-size: 14px; font-family: Arial, Helvetica, sans-serif;"&gt;ControlPoint4, or &lt;SPAN style="font-size: 14px; font-family: Arial, Helvetica, sans-serif;"&gt;ControlPoint8&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;) after reaching ControlPoint2.&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="font-size: 14px; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;SPAN id="isPasted" style="font-size: 14px; font-family: Arial, Helvetica, sans-serif;"&gt;I tried to put the random select thing (the picture below) into the Advanced AGV process flow, but my model doesn't seem to randomly select path now.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="font-size: 14px; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;SPAN style="font-size: 14px; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1688406217399.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1516919iC1545209C44D8E58/image-size/large?v=v2&amp;amp;px=999" role="button" title="1688406217399.png" alt="1688406217399.png" /&gt;&lt;/span&gt;My file : &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/70434-random-test2.fsm" target="_blank"&gt;random_test2.fsm&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;&lt;SPAN id="isPasted" style="color: rgb(51, 51, 51); font-family: Arial, Helvetica, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; float: none; display: inline !important;"&gt;Not sure if I did anything wrong in the model, hope to get some suggestion ~ thanks!&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial,Helvetica,sans-serif;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 03 Jul 2023 17:51:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-save-control-point-into-list/m-p/13581316#M79213</guid>
      <dc:creator>karen8</dc:creator>
      <dc:date>2023-07-03T17:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to save control point into list</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-save-control-point-into-list/m-p/13581317#M79214</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Your model should have no exceptions printed to the output console. You have hundreds but make no mention of these - fix these first.&lt;/P&gt;&lt;P&gt;You have inappropriate instances attached to the process flow - they should be agvs (you have just one - taskexecuter1)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1688645075655.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1516920i641502E4BADFB56D/image-size/large?v=v2&amp;amp;px=999" role="button" title="1688645075655.png" alt="1688645075655.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You're also missing the label assignment for 'agv' in the cp prearrival detection.&lt;/P&gt;&lt;P&gt;Your CP arrival detection code should probably not be in this process flow since it would not scale to more than one taskexecuter.  I suggest having a seperate object process flow for the redirection to a random CP.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 06 Jul 2023 12:02:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-save-control-point-into-list/m-p/13581317#M79214</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2023-07-06T12:02:47Z</dc:date>
    </item>
  </channel>
</rss>

