Tracked Variable: split data from array

Tracked Variable: split data from array

gesa_r
Not applicable
436 Views
1 Reply
Message 1 of 2

Tracked Variable: split data from array

gesa_r
Not applicable

[ FlexSim 18.0.4 ]

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

Reply (1)
Message 2 of 2

JordanLJohnson
Autodesk
Autodesk
Accepted solution

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.

13078-threetvs.png

threetvs.fsm

.


Jordan Johnson
Principal Software Engineer
>