<?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: How should I set the Label of Duration so that Statistics Collector can read it? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-should-i-set-the-label-of-duration-so-that-statistics/m-p/13579792#M78102</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;Hello &lt;A rel="user" href="https://answers.flexsim.com/users/43821/cyc.html" nodeid="43821"&gt;@CYC&lt;/A&gt;,&lt;P&gt;From your description, you are removing the time that the object is "waiting for operator". At that point, it is just the processing time that you are reporting. Which in the model you shared this time does not vary, so I do not understand what you are trying to accomplish with tracking this.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 01 Apr 2024 16:09:08 GMT</pubDate>
    <dc:creator>Jeanette_Fullmer</dc:creator>
    <dc:date>2024-04-01T16:09:08Z</dc:date>
    <item>
      <title>How should I set the Label of Duration so that Statistics Collector can read it?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-should-i-set-the-label-of-duration-so-that-statistics/m-p/13579785#M78095</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 24.0.0 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P id="isPasted"&gt;Hello experts, I'm sorry that my last explanation was not complete, so I will restate my question.&lt;/P&gt;
 &lt;P&gt;This is my model: &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/81032-problem-model.fsm" target="_blank"&gt;Problem_Model.fsm&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;My model is illustrated based on the image below:&lt;span class="lia-inline-image-display-wrapper" image-alt="problem-image1.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1523210iED7E1C576ED6892E/image-size/large?v=v2&amp;amp;px=999" role="button" title="problem-image1.png" alt="problem-image1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;First, I created a Time Table1, which set the rest time of the Operator. Then (please ignore Combiner1, Separator1, and Separator2), I collected the EntryTime, ExitTime, ScheduledDownTime, and Staytime of the three processors through Statistics Collector, where Staytime = ExitTime -EntryTime - ScheduledDownTime. The reason for this is that Staytime should not include the rest time according to the Operator in Time Table1, so I must record ScheduledDownTime.&lt;/P&gt;
 &lt;P&gt;The problem I want to solve is explained according to the following figure:&lt;span class="lia-inline-image-display-wrapper" image-alt="problem-image2.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1523211i3FFFC03572477F8B/image-size/large?v=v2&amp;amp;px=999" role="button" title="problem-image2.png" alt="problem-image2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;ScheduledDownTime cannot be collected correctly, so I followed the method suggested by Joerg Vogel below: use the Downfunction's Duration.&lt;/P&gt;
 &lt;P&gt;The difficulty I have is that I don't know how to set the Label in DownFunction and read the value of this Label in ScheduledDownTime of Statistics Collector.&lt;/P&gt;
 &lt;P&gt;In Time Table1, I set 7 scheduled downs, so I went to query Time Table1 in Tree. These 7 scheduled downs should all be recorded in Time Table1 (the numbers 1~7 I marked in the picture).&lt;/P&gt;
 &lt;P&gt;How should I set the Label of Duration so that the Event Value in ScheduledDownTime of Statistics Collector can read the value of Duration?&lt;/P&gt;
 &lt;P&gt;Thank you all very much for your help.&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 01 Apr 2024 13:32:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-should-i-set-the-label-of-duration-so-that-statistics/m-p/13579785#M78095</guid>
      <dc:creator>s093301465XJNR</dc:creator>
      <dc:date>2024-04-01T13:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: How should I set the Label of Duration so that Statistics Collector can read it?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-should-i-set-the-label-of-duration-so-that-statistics/m-p/13579786#M78096</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You will build or enhance a statistic collector to evaluate a label at involved item, which stores scheduled downtime in this label. Each item, wether it is experiencing a downtime or not, has a label, which stores a possible downtime. &lt;BR /&gt;Your timetable function can store at items in involved member objects the downtime as a label value. &lt;BR /&gt;When an item is leaving an object you update your statistical collector to compute your staytime by entry time, current time and label value. Your label value can store a value of zero, if there hasn’t occurred a downtime for this item while being processed.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 01 Apr 2024 13:46:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-should-i-set-the-label-of-duration-so-that-statistics/m-p/13579786#M78096</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2024-04-01T13:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: How should I set the Label of Duration so that Statistics Collector can read it?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-should-i-set-the-label-of-duration-so-that-statistics/m-p/13579787#M78097</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hello &lt;A rel="user" href="https://answers.flexsim.com/users/43821/cyc.html" nodeid="43821"&gt;@CYC&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I addressed this in a recent post, &lt;A href="https://answers.flexsim.com/questions/160249/exclude-certain-states-from-a-stay-time-chart.html"&gt;exclude-certain-states-from-a-stay-time-chart&lt;/A&gt;. When the object goes down the downtime is set on a label on the item so when it finishes the statistics collector and remove that time from the staytime. &lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 01 Apr 2024 14:33:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-should-i-set-the-label-of-duration-so-that-statistics/m-p/13579787#M78097</guid>
      <dc:creator>Jeanette_Fullmer</dc:creator>
      <dc:date>2024-04-01T14:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: How should I set the Label of Duration so that Statistics Collector can read it?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-should-i-set-the-label-of-duration-so-that-statistics/m-p/13579788#M78098</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/461/joerg.v.html" nodeid="461"&gt;@Joerg Vogel&lt;/A&gt; Thank you for your help. But I still don't understand how to set the value of the label?&lt;/P&gt;
 &lt;P&gt;In On Down in Functions of Time table properties, set the value of one label to Object.stats.state().getTotalTimeAt(STATE_SCHEDULED_DOWN), and in On Resume in Functions of Time table properties, set the value of another label to Object. .stats .state().getTotalTimeAt(STATE_SCHEDULED_DOWN), but there is a problem.&lt;/P&gt;
 &lt;P&gt;If you can help me explain it using a model file, it will be better for me to understand. Thank you very much.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 01 Apr 2024 14:37:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-should-i-set-the-label-of-duration-so-that-statistics/m-p/13579788#M78098</guid>
      <dc:creator>s093301465XJNR</dc:creator>
      <dc:date>2024-04-01T14:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: How should I set the Label of Duration so that Statistics Collector can read it?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-should-i-set-the-label-of-duration-so-that-statistics/m-p/13579789#M78099</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P id="isPasted"&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/24344/jeanettef.html" nodeid="24344"&gt;@Jeanette F&lt;/A&gt; Thanks for your help, This works with downtime from MTBF MTTR.&lt;/P&gt;
 &lt;P&gt;However, in my case, I ran into another problem. I'd like to see Scheduled Down Time From Operator's state of Time Table, not Downtime from MTBF MTTR.&lt;/P&gt;
 &lt;P&gt;Because in my situation, the machine does not need to be down, but the Operator needs to rest (according to working hours).&lt;/P&gt;
 &lt;P&gt;Because my Model has a Time table set up, and the function I want to achieve is that when my material stays on the processor, it must not be in the Scheduled Down state in order to calculate the Staytime.&lt;/P&gt;
 &lt;P&gt;If you can help me explain it using a model file, it will be better for me to understand. Thank you very much.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 01 Apr 2024 14:44:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-should-i-set-the-label-of-duration-so-that-statistics/m-p/13579789#M78099</guid>
      <dc:creator>s093301465XJNR</dc:creator>
      <dc:date>2024-04-01T14:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: How should I set the Label of Duration so that Statistics Collector can read it?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-should-i-set-the-label-of-duration-so-that-statistics/m-p/13579790#M78100</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/43821/cyc.html" nodeid="43821"&gt;@CYC&lt;/A&gt;, please take a look into downfunction source code editor duration local variable. You are able to assign this value to label at an item, which is staying as a subnode in your time table member object.&lt;/P&gt;&lt;P&gt;Edit: seldomly I provide source code to models attached by students to questions. It violates the code of &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/articles/78339/flexsims-policy-on-academic-integrity-best-practic.html" target="_blank"&gt;academic integrity&lt;/A&gt; at this site. If you run in a problem, then you can attach a model especially containing only exactly the problem of your question. It is simplified to the core then,&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 01 Apr 2024 14:47:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-should-i-set-the-label-of-duration-so-that-statistics/m-p/13579790#M78100</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2024-04-01T14:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: How should I set the Label of Duration so that Statistics Collector can read it?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-should-i-set-the-label-of-duration-so-that-statistics/m-p/13579791#M78101</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/461/joerg.v.html" nodeid="461"&gt;@Joerg Vogel&lt;/A&gt; &lt;/P&gt;
 &lt;P id="isPasted"&gt;Thanks again, can you provide the source about "downfunction source code editor duration local variable"? I can't find anything to read.&lt;/P&gt;
 &lt;P&gt;In addition, I originally included a model of the problem I encountered in the article.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 01 Apr 2024 15:12:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-should-i-set-the-label-of-duration-so-that-statistics/m-p/13579791#M78101</guid>
      <dc:creator>s093301465XJNR</dc:creator>
      <dc:date>2024-04-01T15:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: How should I set the Label of Duration so that Statistics Collector can read it?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-should-i-set-the-label-of-duration-so-that-statistics/m-p/13579792#M78102</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Hello &lt;A rel="user" href="https://answers.flexsim.com/users/43821/cyc.html" nodeid="43821"&gt;@CYC&lt;/A&gt;,&lt;P&gt;From your description, you are removing the time that the object is "waiting for operator". At that point, it is just the processing time that you are reporting. Which in the model you shared this time does not vary, so I do not understand what you are trying to accomplish with tracking this.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 01 Apr 2024 16:09:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-should-i-set-the-label-of-duration-so-that-statistics/m-p/13579792#M78102</guid>
      <dc:creator>Jeanette_Fullmer</dc:creator>
      <dc:date>2024-04-01T16:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: How should I set the Label of Duration so that Statistics Collector can read it?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-should-i-set-the-label-of-duration-so-that-statistics/m-p/13579793#M78103</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/24344/jeanettef.html" nodeid="24344"&gt;@Jeanette F&lt;/A&gt; .&lt;/P&gt;
 &lt;P&gt;Sorry, my explanation seems to be unclear. I want Scheduled down time to be recorded, because when Scheduled down time is not recorded, Staytime will include Scheduled down time. This is a result I don't want, because I want to calculate The Stay time is equal to Cycle time. In other words, I need the Scheduled down time to be recorded, Staytime = ExitTime - EntryTime - ScheduledDownTime. When the Operator does not enter the Scheduled down state, ScheduledDownTime=0.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 01 Apr 2024 16:16:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-should-i-set-the-label-of-duration-so-that-statistics/m-p/13579793#M78103</guid>
      <dc:creator>s093301465XJNR</dc:creator>
      <dc:date>2024-04-01T16:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: How should I set the Label of Duration so that Statistics Collector can read it?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-should-i-set-the-label-of-duration-so-that-statistics/m-p/13579794#M78104</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Each edit field that returns a value is editable by a source code, which you can access by parchment roll icon:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="img-0570.jpeg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1523204i988FD59A77248502/image-size/large?v=v2&amp;amp;px=999" role="button" title="img-0570.jpeg" alt="img-0570.jpeg" /&gt;&lt;/span&gt;&lt;BR /&gt;Reference manual under tools for time tables you find a table of properties you can get as parameters:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="img-0571.jpeg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1523207i39D0CF219C8E7741/image-size/large?v=v2&amp;amp;px=999" role="button" title="img-0571.jpeg" alt="img-0571.jpeg" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;A id="isPasted" href="https://docs.flexsim.com/en/24.0/Reference/Tools/TimeTables/TimeTables.html#events&amp;lt;/a&amp;gt;"&gt;&lt;/A&gt;&lt;A href="https://docs.flexsim.com/en/24.0/Reference/Tools/TimeTables/TimeTables.html#events"&gt;https://docs.flexsim.com/en/24.0/Reference/Tools/TimeTables/TimeTables.html#events&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 01 Apr 2024 23:23:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-should-i-set-the-label-of-duration-so-that-statistics/m-p/13579794#M78104</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2024-04-01T23:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: How should I set the Label of Duration so that Statistics Collector can read it?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-should-i-set-the-label-of-duration-so-that-statistics/m-p/13579795#M78105</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;An issue I see with using the duration of down time from the time table is that an item could theoretically enter the processor while the operators are down. Calculating the correct time to subtract from the staytime in that case would be quite a bit more work.&lt;/P&gt;&lt;P&gt;My approach would be the following: Whenever an operator receives a new task sequence, a reference to that operator and the current total time spend in the down state up to this point is stored in a label on the item (On Receive Task Sequence trigger of the operators).&lt;/P&gt;&lt;P&gt;When the item later leaves the processor, you can determine the difference between that previous value and the current total time in the down state, which must the time spent in that state while the item was inside the processor.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/81033-problem-model-fm.fsm" target="_blank"&gt;problem-model_fm.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 Apr 2024 08:14:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-should-i-set-the-label-of-duration-so-that-statistics/m-p/13579795#M78105</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-04-02T08:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: How should I set the Label of Duration so that Statistics Collector can read it?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-should-i-set-the-label-of-duration-so-that-statistics/m-p/13579796#M78106</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P id="isPasted"&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/19365/felixmh.html" nodeid="19365"&gt;@Felix Möhlmann&lt;/A&gt; Thank you so much, this works!&lt;/P&gt;
 &lt;P&gt;But I don't quite understand what this line means:&lt;/P&gt;
 &lt;P&gt;maxDelta = Math.max(maxDelta, operator.stats.state().getTotalTimeAt(STATE_SCHEDULED_DOWN) - ops&lt;I&gt;[2]);&lt;/I&gt;&lt;/P&gt;
 &lt;P&gt;From the point of view I understand, operator.stats.state().getTotalTimeAt(STATE_SCHEDULED_DOWN) = ops&lt;I&gt;[2], so operator.stats.state().getTotalTimeAt(STATE_SCHEDULED_DOWN) - ops&lt;I&gt;[2] will be equal to 0, and maxDelta will also be equal to 0, but in fact this is not the case.&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;
 &lt;P&gt;Can you please clarify this for me? Thanks again.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 Apr 2024 10:44:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-should-i-set-the-label-of-duration-so-that-statistics/m-p/13579796#M78106</guid>
      <dc:creator>s093301465XJNR</dc:creator>
      <dc:date>2024-04-02T10:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: How should I set the Label of Duration so that Statistics Collector can read it?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-should-i-set-the-label-of-duration-so-that-statistics/m-p/13579797#M78107</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;"object.stats.state().getTotalTimeAt(state)" returns the time the object has spent in the given state at the point the function is called.&lt;/P&gt;ops&lt;I&gt;[2] is the time the respective operator had spent in the scheduled down state when the task sequence was received, stored on an item label (so because setup time is 0 and doesn't use any operators this is the time when the item enters the processor).&lt;P&gt;The code is executed when the item exits the processor, so the total time spent in the down state then and when the item entered might be different and is the time you want to exclude from the staytime. This difference is assigned to "maxDelta". Since for one of the processors, two operators are used, this is calculated for each one individually. "Math.max()" is used to only retain the larger of the two values and use that for the subsequent calculation.&lt;/P&gt;&lt;/I&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 Apr 2024 11:18:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-should-i-set-the-label-of-duration-so-that-statistics/m-p/13579797#M78107</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-04-02T11:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: How should I set the Label of Duration so that Statistics Collector can read it?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-should-i-set-the-label-of-duration-so-that-statistics/m-p/13579798#M78108</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/43821/cyc.html" nodeid="43821"&gt;@cyc&lt;/A&gt;, was one of Jeanette F's or Joerg Vogel's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. Or if you still have questions, add a comment and we'll continue the conversation.&lt;/P&gt;&lt;P&gt;If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 08 Apr 2024 12:03:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-should-i-set-the-label-of-duration-so-that-statistics/m-p/13579798#M78108</guid>
      <dc:creator>Jeanette_Fullmer</dc:creator>
      <dc:date>2024-04-08T12:03:16Z</dc:date>
    </item>
  </channel>
</rss>

