Hello,
from examples and answers from the forum (e.g. https://answers.flexsim.com/questions/80701/graph-multiple-data-of-a-tracked-variable-in-one-c.html, https://answers.flexsim.com/questions/177837/performance-measure-from-tracked-variable.html) the following syntax should work to update tracked-variable labels:
myObject.myLabel = newValue;
or
myObject.myLabel.as(TrackedVariable).value = newValue;
However, as one can see below, the only working syntax is using the "labels" format:
myObject.labels["myLabel"].as(TrackedVariable).value = newValue;
It also fails when reading the variable content: