<?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: Exporting Data through experimenter in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/exporting-data-through-experimenter/m-p/13596085#M90869</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;It's hard to help without seeing the model.&lt;/P&gt;&lt;P&gt;Just to be safe: Your experiment only has a single scenario? Otherwise using only the replication number in the file name would lead to multiple instances trying to write to the same file.&lt;BR /&gt;Can you clone the global table to a Calculated Table? Then you could check the values with "View Results" and compare to what you have in the csv-files.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 25 Mar 2025 07:54:11 GMT</pubDate>
    <dc:creator>moehlmann_fe</dc:creator>
    <dc:date>2025-03-25T07:54:11Z</dc:date>
    <item>
      <title>Exporting Data through experimenter</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/exporting-data-through-experimenter/m-p/13596084#M90868</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.2.3 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi all, I have a bunch of data being written to global tables at run time. At the end of each replication , I would like to export the data from the global tables to a CSV file.&lt;BR /&gt;&lt;BR /&gt;It works, but I am getting weird results that are inconsistent with what I should observe. In particular, several of my iterations are giving me incomplete model runs. However, when I use "Apply the following scenario and replication to the model", I get a completely different result from what I exported. I am inclined to believe that the runs in the experimenter could be interfering with the export in a way or another.&lt;BR /&gt;&lt;BR /&gt;I am using the following code:&lt;/P&gt;
 &lt;PRE&gt;/**Custom Code*/
Object current = ownerobject(c);
int replication = param(1);
int scenario = param(2);
treenode childexpfolder = param(3);
Map task = param(4);


if (!objectexists(childexpfolder)){
Table tbl = Table("Output_Result");
string Name = "Output_Result_" + numtostring(replication) + ".csv";
exporttable(tbl, Name,1,1);
}
&lt;/PRE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 24 Mar 2025 18:06:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/exporting-data-through-experimenter/m-p/13596084#M90868</guid>
      <dc:creator>Elax</dc:creator>
      <dc:date>2025-03-24T18:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Data through experimenter</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/exporting-data-through-experimenter/m-p/13596085#M90869</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;It's hard to help without seeing the model.&lt;/P&gt;&lt;P&gt;Just to be safe: Your experiment only has a single scenario? Otherwise using only the replication number in the file name would lead to multiple instances trying to write to the same file.&lt;BR /&gt;Can you clone the global table to a Calculated Table? Then you could check the values with "View Results" and compare to what you have in the csv-files.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Mar 2025 07:54:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/exporting-data-through-experimenter/m-p/13596085#M90869</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2025-03-25T07:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Data through experimenter</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/exporting-data-through-experimenter/m-p/13596086#M90870</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Ah I found the issue. Seems to be multiple scenarios writing to the same file. Separated them and it works fine now. Thank you so much!
&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Mar 2025 17:41:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/exporting-data-through-experimenter/m-p/13596086#M90870</guid>
      <dc:creator>Elax</dc:creator>
      <dc:date>2025-03-25T17:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Data through experimenter</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/exporting-data-through-experimenter/m-p/13596087#M90871</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;That's nice to hear! I changed my comment into an answer. It would be nice if you could accept it to mark the question as solved.&lt;/DIV&gt;</description>
      <pubDate>Wed, 26 Mar 2025 07:05:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/exporting-data-through-experimenter/m-p/13596087#M90871</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2025-03-26T07:05:21Z</dc:date>
    </item>
  </channel>
</rss>

