question

Alex Q avatar image
0 Likes"
Alex Q asked Phil BoBo edited

Graph multiple tracked variables in one chart?

I have tracked variables that increments entering a WIP rack and decrements exiting, on 2 different WIP racks. I wanted to put both of these tracked variables on the same graph. I pinned one of them to a dashboard, but wondering how to maybe put the second one in there?

FlexSim 19.0.2
tracked variables
· 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.

Alex Q avatar image Alex Q commented ·

This is in a Line graph (over time)

0 Likes 0 ·
Alex Q avatar image Alex Q commented ·

Also on top of this....I have my model starting in October, and when January hits, the starting point for the variable goes to 0....when it should be whatever it left off at for December

0 Likes 0 ·
Alex Q avatar image Alex Q commented ·
0 Likes 0 ·
Alex Q avatar image Alex Q commented ·
0 Likes 0 ·
Phil BoBo avatar image
1 Like"
Phil BoBo answered

You can also use a StatisticsCollector object to listen to all 3 tracked variables to put them on a single chart.

The example model I posted in this question does that.

5 |100000

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

Alex Q avatar image
0 Likes"
Alex Q answered Phil BoBo edited

@Joshua S @phil.bobo, still not sure why from this model the tracked variable HT WIP Hrs and Inspection WIP Hrs go negative when the model hits January? do variables reset then?

· 1
5 |100000

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

Phil BoBo avatar image Phil BoBo ♦♦ commented ·

You should change the Type on your tracked variables from Cumulative (e.g., Input/Output; i.e., values that always go up) to Level (e.g., Content; i.e., values that go up and down).

See Tracked Variables.

You have a warmup time defined in your model as 7 AM on 1/1/2019:

Uncheck that box if you do not want the stats to be reset at that time.

0 Likes 0 ·
warmup-time2.png (76.6 KiB)
Joshua S avatar image
0 Likes"
Joshua S answered tannerp rolled back

To get 2+ tracked variables to graph together, go to Global preferences, and in the Environment tab toggle the button for "display legacy charts in the dashboard Library". Then it will allow you to add a tracked variable vs time graph, and you can select as many tracked variables as you want. Which variable is the one that goes to zero?

· 3
5 |100000

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

Alex Q avatar image Alex Q commented ·

Ok, I will check that out! So the HT WIP variable was the one that once it hit January it goes from like 40 hrs to 0 and then into the negatives....not sure why

0 Likes 0 ·
Joshua S avatar image Joshua S Alex Q commented ·

Where do you manipulate that variable in your model?

0 Likes 0 ·
Alex Q avatar image Alex Q commented ·
0 Likes 0 ·
captu34124re.png (89.7 KiB)

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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