question

Gesa R avatar image
1 Like"
Gesa R asked Gesa R commented

Tracked Variable: split data from array

Hi,

I have a global variable (Array[3]) and I would like to make a line/point graph over time when one of the array values changes.I need to split the data by the array fields (3 different lines in one graph). I used a tracked variable but I didn't find any option to make the tracked variable an array.

Now I have a single tracked variable and a gaph with three different points at one change time but they are all the same color.

Do I need 3 tracked variables and combine them in the statistic collector?

Thanks

FlexSim 18.0.4
dashboardsstatistics collectorline charttracked variable vs timesplit data
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

·
Jordan Johnson avatar image
3 Likes"
Jordan Johnson answered

You should make the three variables, and then listen to the OnChange of all three. Your table should record the time, the variable name, and the value (data.newValue) as three columns. You can then point a chart at that collector, and use a Split By to create the three lines.

threetvs.fsm


threetvs.png (33.8 KiB)
threetvs.fsm (25.1 KiB)
5 |100000

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

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.