<?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 How can I link the processor in my simulation to tables? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-link-the-processor-in-my-simulation-to-tables/m-p/13504902#M19181</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 19.2.3 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23697-tableproblem1.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1500653i1E9756B17ECFA5A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="23697-tableproblem1.png" alt="23697-tableproblem1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I’ve created a simple model in which 2 different types of items are being processed and later on they arrive at their respective queues. I have also created two different tables. The first one describes a sequence in which I want the processor to pull items from the first two queues, based on their LoadType. The second one describes the process time related to each LoadType. &lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23698-tableproblem2.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1500654iE1B8BE7E7003F37C/image-size/large?v=v2&amp;amp;px=999" role="button" title="23698-tableproblem2.png" alt="23698-tableproblem2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Unfortunately, I haven’t been able to correctly link the processor to these tables so far so I was wondering if I could get a little help here. &lt;/P&gt;
&lt;P&gt;&lt;A id="23699" href="https://answers.flexsim.com/storage/attachments/23699-tableproblem.fsm"&gt;tableproblem.fsm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thank you! &lt;/P&gt;</description>
    <pubDate>Thu, 21 Nov 2019 09:35:07 GMT</pubDate>
    <dc:creator>julien_l2</dc:creator>
    <dc:date>2019-11-21T09:35:07Z</dc:date>
    <item>
      <title>How can I link the processor in my simulation to tables?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-link-the-processor-in-my-simulation-to-tables/m-p/13504902#M19181</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 19.2.3 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23697-tableproblem1.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1500653i1E9756B17ECFA5A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="23697-tableproblem1.png" alt="23697-tableproblem1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I’ve created a simple model in which 2 different types of items are being processed and later on they arrive at their respective queues. I have also created two different tables. The first one describes a sequence in which I want the processor to pull items from the first two queues, based on their LoadType. The second one describes the process time related to each LoadType. &lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23698-tableproblem2.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1500654iE1B8BE7E7003F37C/image-size/large?v=v2&amp;amp;px=999" role="button" title="23698-tableproblem2.png" alt="23698-tableproblem2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Unfortunately, I haven’t been able to correctly link the processor to these tables so far so I was wondering if I could get a little help here. &lt;/P&gt;
&lt;P&gt;&lt;A id="23699" href="https://answers.flexsim.com/storage/attachments/23699-tableproblem.fsm"&gt;tableproblem.fsm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thank you! &lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 09:35:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-link-the-processor-in-my-simulation-to-tables/m-p/13504902#M19181</guid>
      <dc:creator>julien_l2</dc:creator>
      <dc:date>2019-11-21T09:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I link the processor in my simulation to tables?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-link-the-processor-in-my-simulation-to-tables/m-p/13504903#M19182</link>
      <description>&lt;P&gt;The Proccesor pulls the items of the queue. The Pull Strategy looks up from the Table "Sequence". You need a label that tells the processor the row. There are different aproaches you can use: The classic increments the label on a repeating event of the process like OnSetupFinish, OnProcessFinish, OnExit,... You need to write some code in such a trigger:&lt;/P&gt;&lt;PRE&gt;current.yourlabelname += 1;&lt;/PRE&gt;&lt;P&gt;If the label exceeds the available rows of the table, you need to reset the value back to the first row.&lt;/P&gt;&lt;PRE&gt;if(current.yourlabelname &amp;gt; Table("Sequence").numRows) current.yourlabelname = 1;&lt;/PRE&gt;&lt;P&gt;On Model Run Start you must be sure the value of this label must start with the first row, too.&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;process time&lt;/STRONG&gt; uses the look-up of a global table, too:&lt;/P&gt;&lt;P&gt;You can use for the row the label "LoadType" at the item&lt;/P&gt;&lt;PRE&gt;item.LoadType&lt;/PRE&gt;&lt;P&gt;&lt;A id="23701" href="https://answers.flexsim.com/storage/attachments/23701-tableproblem-jv.fsm"&gt;tableproblem-jv.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 11:14:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-link-the-processor-in-my-simulation-to-tables/m-p/13504903#M19182</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2019-11-21T11:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I link the processor in my simulation to tables?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-link-the-processor-in-my-simulation-to-tables/m-p/13504904#M19183</link>
      <description>&lt;P&gt;An alternative approach with array. I copy the table Sequence to an array through a query. The Pull strategy return the first element and delete it from a label. If the array length drops to zero the array is filled by the query again.&lt;/P&gt;&lt;P&gt;&lt;A id="23712" href="https://answers.flexsim.com/storage/temp/23712-tableproblem-as-array-jv.fsm"&gt;tableproblem-as-array-jv.fsm&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 16:56:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-link-the-processor-in-my-simulation-to-tables/m-p/13504904#M19183</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2019-11-21T16:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: How can I link the processor in my simulation to tables?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-link-the-processor-in-my-simulation-to-tables/m-p/13504905#M19184</link>
      <description>&lt;P&gt;Thank you for your efforts! It really helped me a lot so far. I was wondering if I could use the same methods with a combiner or a separator but I will make another post for this particular question.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 18:10:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-can-i-link-the-processor-in-my-simulation-to-tables/m-p/13504905#M19184</guid>
      <dc:creator>julien_l2</dc:creator>
      <dc:date>2019-11-21T18:10:32Z</dc:date>
    </item>
  </channel>
</rss>

