I am using tracked variables to gather statistics in my model. One is of type Level, used to count the number of pieces moved; the second is of type Time series.
I would like to access the Min/Avg/Max values in code using getstat(), similar to how I can with any PF Activity, e.g., getstat(trackedvariable("vPiecesReplenished"),"Content", STAT_CURRENT);
However this returns 3.4E38 (i.e., unknown value).
(For a PF activity I use getstat(getactivity("ProcessFlow", sActivity), sStatistic, STAT_CURRENT)
I'm guessing that "Content" is not the right statistic name? What names should I use, or is there a different command? Or is it possible at all?
Thanks,
Craig