<?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: Write to Global table in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/write-to-global-table/m-p/13532488#M41095</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;Fiona, yies, that was what I asked. The reference to each item is destroyed. I can't use it anymore.&lt;/DIV&gt;</description>
    <pubDate>Thu, 17 Jun 2021 07:22:12 GMT</pubDate>
    <dc:creator>joerg_vogel_HsH</dc:creator>
    <dc:date>2021-06-17T07:22:12Z</dc:date>
    <item>
      <title>Write to Global table</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/write-to-global-table/m-p/13532484#M41091</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 20.1.3 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I'd like to use global table recording every items enter and exit a Processor or Queue. There are 3 GlobalTables in my model.&lt;/P&gt;
 &lt;P&gt;First, I use Entry ID List to keep all items.&lt;/P&gt;
 &lt;P&gt;Then using QueueRecord to keep which item(ID) enters and exits which queue(QLocation).&lt;/P&gt;
 &lt;P&gt;EQRecord is similar to QueueRecord, it record &lt;SPAN style="color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 3; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;which item(ID) enters and exits which Equipment(EQLocation).&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;Now I have no idea why only exitEQtime has been recorded. Other GlobalTables can not reach those Label I assigned in Triggers. And I can't find the script to get where item at. I only found Position and Location, but Position is presented in XYZ axis. Now in my model I use item.location to get information where item is, but not sure if this works. Because in my other works, there are many Processors and Queues in model, so I'd like to gain information from GlobalTable that the specific location each item is at (ex: item ID=1 enters Processor1 at time=10sec).&lt;/P&gt;
 &lt;P&gt;(I update again!)&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/40606-write-to-table-example.fsm" target="_blank"&gt;Write to Table Example.fsm&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Jun 2021 04:04:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/write-to-global-table/m-p/13532484#M41091</guid>
      <dc:creator>shanice_c</dc:creator>
      <dc:date>2021-06-17T04:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Write to Global table</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/write-to-global-table/m-p/13532485#M41092</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Do your items still exists on simulation end?&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Jun 2021 05:38:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/write-to-global-table/m-p/13532485#M41092</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2021-06-17T05:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Write to Global table</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/write-to-global-table/m-p/13532486#M41093</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I saw there are Input in my Sink. Sorry, Are are asking this?&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Jun 2021 05:55:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/write-to-global-table/m-p/13532486#M41093</guid>
      <dc:creator>shanice_c</dc:creator>
      <dc:date>2021-06-17T05:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Write to Global table</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/write-to-global-table/m-p/13532487#M41094</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;When I open your model I get a lot error messages as the order of code in some triggers seems to be scrambled. (Wrong number of {} brackets)&lt;BR /&gt;&lt;BR /&gt;Anyway, my suggestion would be to do it as follows:&lt;/P&gt;&lt;P&gt;1. Set all tables to delete all rows on model reset. We will add these dynamically when needed, so you don't have to know how many rows you will need in advance.&lt;/P&gt;&lt;P&gt;2. In the creation trigger of the queue, only set the "ID" label of the item.&lt;/P&gt;&lt;P&gt;3. In the exit trigger of the queue, use "Data" -&amp;gt; "Add Row and Data to GlobalTable" to add a new row to the "Entry ID List" table and set the value of the first colums to the item ID.&lt;/P&gt;&lt;P&gt;4. Similarly, in the entry trigger of the other objects, add a new row to the respective table and fill in the information you can (ID, Entrytime, location). For the location you can use "current", a reference to the object the trigger belongs to. (This returns a pointer to the object, if you only want the name you can use "current.name" instead).&lt;BR /&gt;Also, a label "TableRow" on the item gets set to the last row in the table (the one that just go added), which will be needing later.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="40631-addrowanddata.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1506411iB80A51937EA95A6D/image-size/large?v=v2&amp;amp;px=999" role="button" title="40631-addrowanddata.png" alt="40631-addrowanddata.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;5. In the exit trigger of queue and processor the exit time gets filled in with the "Write to GlobalTable" option, using the "TableRow" label on the item to identify the correct row.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="fillinexittime.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1506412i512ADDF241B59AD1/image-size/large?v=v2&amp;amp;px=999" role="button" title="fillinexittime.png" alt="fillinexittime.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/40560-write-to-table-example-fm.fsm" target="_blank"&gt;write-to-table-example_FM.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Jun 2021 06:51:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/write-to-global-table/m-p/13532487#M41094</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2021-06-17T06:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Write to Global table</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/write-to-global-table/m-p/13532488#M41095</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Fiona, yies, that was what I asked. The reference to each item is destroyed. I can't use it anymore.&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Jun 2021 07:22:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/write-to-global-table/m-p/13532488#M41095</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2021-06-17T07:22:12Z</dc:date>
    </item>
  </channel>
</rss>

