<?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: Change in downtime over a period of time in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/change-in-downtime-over-a-period-of-time/m-p/13499911#M15359</link>
    <description>&lt;A rel="user" href="https://answers.flexsim.com/users/2232/brandon.t.html" nodeid="2232"&gt;@Brandon Tondreault&lt;/A&gt;&lt;P&gt;Yes, that makes more sense to me now, thank you for explaining.&lt;/P&gt;&lt;P&gt;Attached is a sample model that should do what you are describing.  First off, the model will not actually work as set up.  That is because time tables are changing every 100 seconds.  The chances that a time table will be "active" when the scheduled "up" time in the the time table is also active, is slim, at best.  But it is after all only a sample model.&lt;/P&gt;&lt;P&gt;I setup four time tables, TimeTable1 through TimeTable4.  Each has a different operational time that the others.  Then I created four User Events.  This is where the time tables will be turned on and off.  The first one, at time 0, will turn off all the time tables except for the first one.  It will repeat every 400 time units.  It's pretty much the same for the next three except that it will turn on/off different time tables.&lt;/P&gt;&lt;P&gt;Even though this sample model will not work the way it is set up, it should give you a good idea on how to possibly set it up for your own situation.  If you have any questions, please let us know.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;A id="10906" href="https://answers.flexsim.com/storage/temp/10906-timetable-sample-jn1.fsm"&gt;timetable-sample-jn1.fsm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Mar 2018 20:31:32 GMT</pubDate>
    <dc:creator>jeff_nordgren</dc:creator>
    <dc:date>2018-03-05T20:31:32Z</dc:date>
    <item>
      <title>Change in downtime over a period of time</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/change-in-downtime-over-a-period-of-time/m-p/13499906#M15354</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 18.0.2 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Is there a possible way to change timetables or the downtime of a processor after a certain period of time in the simulation? &lt;/P&gt;
&lt;P&gt;Example: from Feb to March reference TimeTable1, then from April to May reference TimeTable2 and etc..&lt;/P&gt;
&lt;P&gt;If there is a way, how difficult and time consuming would it be?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 16:19:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/change-in-downtime-over-a-period-of-time/m-p/13499906#M15354</guid>
      <dc:creator>brandon_tondreault</dc:creator>
      <dc:date>2018-02-28T16:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Change in downtime over a period of time</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/change-in-downtime-over-a-period-of-time/m-p/13499907#M15355</link>
      <description>&lt;P&gt;
	&lt;A rel="user" href="https://answers.flexsim.com/users/2232/brandon.t.html" nodeid="2232"&gt;@Brandon Tondreault&lt;/A&gt;&lt;/P&gt;&lt;P&gt;
	This is probably what I would do if it were my model.  I would create each TimeTable (1 through X) and include the objects (Processors, task executers, etc.) required for that TimeTable.  Then in the upper right hand corner of the Time Table Parameters Window is a check box called "Enabled".  If you un-check that box, that Time Table will never execute.  So, until you turn them on/off, the Time Tables will not execute any code.&lt;/P&gt;&lt;P&gt;
	Here is the code that you can use to turn on/off any of the Time Tables:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;
	treenode TT1 = model().find("Tools/TimeTables/TimeTable1&amp;gt;variables/enabled"); // Pointer to TT

	TT1.value = 0; // 0 = Turn off the Time Table   1 = Turn on the Time Table
&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;
	This way, anywhere in your code, at any time, you could turn off one TT and turn on another one.  Maybe you could try this in your model and see how it will work for you.&lt;/P&gt;&lt;P&gt;
	Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 22:19:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/change-in-downtime-over-a-period-of-time/m-p/13499907#M15355</guid>
      <dc:creator>jeff_nordgren</dc:creator>
      <dc:date>2018-03-01T22:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Change in downtime over a period of time</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/change-in-downtime-over-a-period-of-time/m-p/13499908#M15356</link>
      <description>&lt;A rel="user" href="https://answers.flexsim.com/users/187/jeff.n.html" nodeid="187"&gt;@Jeff Nordgren&lt;/A&gt;
&lt;P&gt;Not sure if I understand your code above. Where would I put this code? Also, where would TimeTableX come in and time variable "Y" hours. &lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Brandon&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 12:42:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/change-in-downtime-over-a-period-of-time/m-p/13499908#M15356</guid>
      <dc:creator>brandon_tondreault</dc:creator>
      <dc:date>2018-03-02T12:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Change in downtime over a period of time</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/change-in-downtime-over-a-period-of-time/m-p/13499909#M15357</link>
      <description>&lt;A rel="user" href="https://answers.flexsim.com/users/2232/brandon.t.html" nodeid="2232"&gt;@Brandon Tondreault&lt;/A&gt;&lt;P&gt;As far as the code goes, you would put that in your model in a Trigger or some other type of code entry field that would make sense, when you want to turn a Time Table on or off.  I'm not sure where that is for you because I don't have your model or how your model works to know where that place would be, exactly.  But I'm guessing it would be at a point that you are finished with a Time Table or want to stop one Time Table and begin another one, which seems to be what you are trying to accomplish.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;
	&lt;/STRONG&gt;treenode &lt;STRONG&gt;TT1&lt;/STRONG&gt; = model().find("Tools/TimeTables/&lt;STRONG&gt;TimeTable1&lt;/STRONG&gt;&amp;gt;variables/&lt;STRONG&gt;enabled&lt;/STRONG&gt;"); // Pointer to TT&lt;/P&gt;&lt;P&gt;	&lt;STRONG&gt;TT1&lt;/STRONG&gt;.value = 0; // 0 = Turn off the Time Table   1 = Turn on the Time Table
&lt;/P&gt;&lt;P&gt;The first line of code gets a reference to the Time Table object called "TimeTable1".  It could be any name, of course, but in this example, it is TimeTable1.  The second line of code uses that reference to the Time Table to change the value of that node (the "enabled" node in the time table's tree), 0 to turn it off and 1 to turn it on.  I hope that makes more sense?&lt;/P&gt;&lt;P&gt;I'll admit that I don't know what your last sentence "Also, where would TimeTableX come in and time variable "Y" hours." means.  I'm guessing that TimeTableX is just a name of a time table (probably not too descriptive) that you have in your model that you may want to turn on or off.  As for the "time variable 'Y hours'", I haven't got a clue what you are referring to.  If you could explain in more detail, that would help a lot.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;"&lt;BR /&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 23:24:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/change-in-downtime-over-a-period-of-time/m-p/13499909#M15357</guid>
      <dc:creator>jeff_nordgren</dc:creator>
      <dc:date>2018-03-02T23:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Change in downtime over a period of time</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/change-in-downtime-over-a-period-of-time/m-p/13499910#M15358</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/187/jeff.n.html" nodeid="187"&gt;@Jeff Nordgren&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;I mean after "Y" hours, I want to switch the timetables. Example: Going from TimeTable1 to TimeTable2 at time 100 hours, and then TimeTable3 at time 200 hours...etc.&lt;/P&gt;
&lt;P&gt;Sounds like it would be an IF statement with the code you sent me? Changing the values from 1 to 0 and 0 to 1 based on the time of the model.&lt;/P&gt;
&lt;P&gt;Does that make sense now?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 17:24:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/change-in-downtime-over-a-period-of-time/m-p/13499910#M15358</guid>
      <dc:creator>brandon_tondreault</dc:creator>
      <dc:date>2018-03-05T17:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Change in downtime over a period of time</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/change-in-downtime-over-a-period-of-time/m-p/13499911#M15359</link>
      <description>&lt;A rel="user" href="https://answers.flexsim.com/users/2232/brandon.t.html" nodeid="2232"&gt;@Brandon Tondreault&lt;/A&gt;&lt;P&gt;Yes, that makes more sense to me now, thank you for explaining.&lt;/P&gt;&lt;P&gt;Attached is a sample model that should do what you are describing.  First off, the model will not actually work as set up.  That is because time tables are changing every 100 seconds.  The chances that a time table will be "active" when the scheduled "up" time in the the time table is also active, is slim, at best.  But it is after all only a sample model.&lt;/P&gt;&lt;P&gt;I setup four time tables, TimeTable1 through TimeTable4.  Each has a different operational time that the others.  Then I created four User Events.  This is where the time tables will be turned on and off.  The first one, at time 0, will turn off all the time tables except for the first one.  It will repeat every 400 time units.  It's pretty much the same for the next three except that it will turn on/off different time tables.&lt;/P&gt;&lt;P&gt;Even though this sample model will not work the way it is set up, it should give you a good idea on how to possibly set it up for your own situation.  If you have any questions, please let us know.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;A id="10906" href="https://answers.flexsim.com/storage/temp/10906-timetable-sample-jn1.fsm"&gt;timetable-sample-jn1.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 20:31:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/change-in-downtime-over-a-period-of-time/m-p/13499911#M15359</guid>
      <dc:creator>jeff_nordgren</dc:creator>
      <dc:date>2018-03-05T20:31:32Z</dc:date>
    </item>
  </channel>
</rss>

