<?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 get the agv state information using custom code ? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-the-agv-state-information-using-custom-code/m-p/13552537#M56830</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;If you agvs are members of an object process flow then the state can be found using:&lt;/P&gt;&lt;PRE&gt;current.stats.state().valueString   //returns eg.  "idle"&lt;/PRE&gt;&lt;P&gt;or&lt;/P&gt;&lt;PRE&gt;current.stats.state().value   //returns eg.  1  or STATE_IDLE&lt;/PRE&gt;&lt;P&gt;Otherwise substitute &lt;EM&gt;current &lt;/EM&gt; with a pointer to your agv object - eg token.agv&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 22 Feb 2023 00:12:46 GMT</pubDate>
    <dc:creator>jason_lightfoot_adsk</dc:creator>
    <dc:date>2023-02-22T00:12:46Z</dc:date>
    <item>
      <title>How to get the agv state information using custom code ?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-the-agv-state-information-using-custom-code/m-p/13552536#M56829</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 21.1.5 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi,&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;I used process flow to determine the operation of an AGV such as travel, load, unload. I would like to know what is the state of an AGV using custom code so that i can decide where my token needs to go next.&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1677021244298.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1515505iB3CD354D6B44F371/image-size/large?v=v2&amp;amp;px=999" role="button" title="1677021244298.png" alt="1677021244298.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;For example as seen in the attached image, the selected AGV is blocked. i would like to check that using the custom code in decide function.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Feb 2023 23:16:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-the-agv-state-information-using-custom-code/m-p/13552536#M56829</guid>
      <dc:creator>athodupunoori</dc:creator>
      <dc:date>2023-02-21T23:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the agv state information using custom code ?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-the-agv-state-information-using-custom-code/m-p/13552537#M56830</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;If you agvs are members of an object process flow then the state can be found using:&lt;/P&gt;&lt;PRE&gt;current.stats.state().valueString   //returns eg.  "idle"&lt;/PRE&gt;&lt;P&gt;or&lt;/P&gt;&lt;PRE&gt;current.stats.state().value   //returns eg.  1  or STATE_IDLE&lt;/PRE&gt;&lt;P&gt;Otherwise substitute &lt;EM&gt;current &lt;/EM&gt; with a pointer to your agv object - eg token.agv&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 22 Feb 2023 00:12:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-the-agv-state-information-using-custom-code/m-p/13552537#M56830</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2023-02-22T00:12:46Z</dc:date>
    </item>
  </channel>
</rss>

