How do I get multiple tracked variables on a single graph?

How do I get multiple tracked variables on a single graph?

nathan_s7
Not applicable
328 Views
2 Replies
Message 1 of 3

How do I get multiple tracked variables on a single graph?

nathan_s7
Not applicable

[ FlexSim 21.2.4 ]

I have multiple tracked variables tracking the content of that variable, and can create graphs through the pinning to a dashboard function. However, I am encountering issues when combining the relevant statistics collectors to create a graph of both variables simultaneously.

0 Likes
Accepted solutions (1)
329 Views
2 Replies
Replies (2)
Message 2 of 3

JordanLJohnson
Autodesk
Autodesk
Accepted solution

In version 2021 Update 2, you should make a custom statistics collector.

  • Listen to the OnChange of all the tracked variables you want on the chart
  • Add three columns:
    • Time - set the Row Add Value to Model.time
    • Value - set the Row Add Value to current.value. Set the storage type to int, if you are storing whole numbers. Leave it on Double for decimal values.
    • TV - set the Row Add Value to current.name, and set the storage type to string.
  • Set the chart to Split by the TV column (color, axis, or both)

In version 2022 or later, you can just pin the tracked variable, and then use the chart's UI to add additional tracked variables.

.


Jordan Johnson
Principal Software Engineer
>

0 Likes
Message 3 of 3

Jeanette_Fullmer
Community Manager
Community Manager

Hi @Nathan S7, was Jordan Johnson's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes