<?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 Tracking staytime of two different itemtypes in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/tracking-staytime-of-two-different-itemtypes/m-p/13491381#M8831</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 16.0.1 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;I'm trying to track the staytime of two different itemtypes from creation to exit.&lt;/P&gt;
&lt;P&gt;Using the “Tracked Variable vs. Time” on the Dashboard works almost perfectly, except it gives the data for all items created. Is there a way to create a chart on the Dashboard that gives the information for the two items distinctly? Or be able to export to .csv (The Tracked Variable vs. time does give all the data points, there just doesn't seem to be an efficient way for me to distinguish which staytimes are for item 1 or item 2).&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2016 22:23:40 GMT</pubDate>
    <dc:creator>meaghan_griffith</dc:creator>
    <dc:date>2016-06-14T22:23:40Z</dc:date>
    <item>
      <title>Tracking staytime of two different itemtypes</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/tracking-staytime-of-two-different-itemtypes/m-p/13491381#M8831</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 16.0.1 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;I'm trying to track the staytime of two different itemtypes from creation to exit.&lt;/P&gt;
&lt;P&gt;Using the “Tracked Variable vs. Time” on the Dashboard works almost perfectly, except it gives the data for all items created. Is there a way to create a chart on the Dashboard that gives the information for the two items distinctly? Or be able to export to .csv (The Tracked Variable vs. time does give all the data points, there just doesn't seem to be an efficient way for me to distinguish which staytimes are for item 1 or item 2).&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 22:23:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/tracking-staytime-of-two-different-itemtypes/m-p/13491381#M8831</guid>
      <dc:creator>meaghan_griffith</dc:creator>
      <dc:date>2016-06-14T22:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking staytime of two different itemtypes</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/tracking-staytime-of-two-different-itemtypes/m-p/13491382#M8832</link>
      <description>&lt;P&gt;I suggest
making two new Tracked Variables and have each variable record data for only
one itemtype.  I am attaching an example model to show you how to do this.&lt;/P&gt;&lt;P&gt;I have the model set up with an even split between itemtype 1 (red) and 2
(green).  Each type goes to a different Processor to show a generally
higher time in system for the green flowitems.&lt;/P&gt;&lt;P&gt;To add a new Tracked Variable, you just need to go into the Toolbox, click on
the green plus sign, go to Statistics, then click on Tracked Variable.  It
will give you a window with TrackedVariable1 in the dropdown.  If you were
to click in the dropdown, you would see the other two default Tracked Variables
plus the new one.  If you make sure the new one is selected from the
dropdown, you can change its name if you want.  I went ahead and changed
it to TimeInSystem1.  Then, I added another Tracked Variable with the
green plus sign in the Tracked Variable window and named it
TimeInSystem2.  It's possible to change a Tracked Variable's type
depending on the information you want to keep track of, but I only needed to
keep both the new variables as a "Time Series (e.g. Staytime)" to
match the default TimeInSystem variable.&lt;/P&gt;&lt;P&gt;Then, it was just a matter of setting data on those Tracked Variables in the
Sink's OnEntry trigger.  If you add one of the predefined picklist options
for this trigger, you can go to Data then "Set Tracked
Variable".  I made sure it was the correct variable selected in the
new window that pops up.  I also used another predefined option for the
"To" field labelled "Item's Time in System".  After
this option is selected, it uses this code:&lt;/P&gt;&lt;PRE&gt;time() - getcreationtime(item)&lt;/PRE&gt;&lt;P&gt;Which simply takes the current time (when the flowitem is leaving the model)
and subtracts the time the item was created using the getcreationtime()
command.  Finally, I set the Condition to be "Specific Item
Type" and made sure the number was correct - either a 1 or 2.  I
decided TimeInSystem1 should represent items of type 1, so I left it as a 1.&lt;/P&gt;&lt;P&gt;Then, I made a second operation to the Sink's OnEntry trigger by clicking on
the green plus sign and set it up the same way as the first time except I chose
TimeInSystem2 as the variable and changed the 1 to a 2 for the Condition.&lt;/P&gt;&lt;P&gt;Now we have the time in system for a specific itemtype being recorded to the
same custom Tracked Variable each time.  TimeInSystem1 will only keep
track of the time in system for itemtype 1, and TimeInSystem2 will do the same
for itemtype 2.&lt;/P&gt;&lt;P&gt;To have both Tracked Variables show up on the Dashboard, I used the "Time
In System vs Time" option, but the "Tracked Variable vs Time"
option will do the same thing.  I just made sure to remove the original
TimeInSystem variable from the list of Tracked Variables in the widget's
options and added my new custom Tracked Variables.  You can change how the
data is displayed in the widget's General tab, but I left it alone as a Time
Plot with all the defaults.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 22:25:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/tracking-staytime-of-two-different-itemtypes/m-p/13491382#M8832</guid>
      <dc:creator>logan_gold</dc:creator>
      <dc:date>2016-06-14T22:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking staytime of two different itemtypes</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/tracking-staytime-of-two-different-itemtypes/m-p/13491383#M8833</link>
      <description>&lt;P&gt;Just for another point of view, you may be interested in the answers to this question:&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/questions/21439/time-in-system-dashboard-issue.html" target="_blank"&gt;Tracked variables and Zones&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That talks about using the Process Flow 'Zone' to achieve the same results   &lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 22:35:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/tracking-staytime-of-two-different-itemtypes/m-p/13491383#M8833</guid>
      <dc:creator>regan_blackett</dc:creator>
      <dc:date>2016-06-14T22:35:44Z</dc:date>
    </item>
  </channel>
</rss>

