question

Brandon Tondreault avatar image
0 Likes"
Brandon Tondreault asked Jeff Nordgren commented

Change in downtime over a period of time

Is there a possible way to change timetables or the downtime of a processor after a certain period of time in the simulation?

Example: from Feb to March reference TimeTable1, then from April to May reference TimeTable2 and etc..

If there is a way, how difficult and time consuming would it be?

FlexSim 18.0.2
timetablechange over time
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Jeff Nordgren avatar image
1 Like"
Jeff Nordgren answered Jeff Nordgren commented

@Brandon Tondreault

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.

Here is the code that you can use to turn on/off any of the Time Tables:

treenode TT1 = model().find("Tools/TimeTables/TimeTable1>variables/enabled"); // Pointer to TT TT1.value = 0; // 0 = Turn off the Time Table 1 = Turn on the Time Table

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.

Thanks.

· 4
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.