Meta data source example
-
Hello
Is this a good way to do it or is the data already in some array so that I do not need to define them like this:
var meters = [vaz101.value, vaz102.value, vaz103.value, vaz104.value, vaz105.value, vaz106.value, vaz107.value, vaz108.value, vaz109.value, vaz110.value, vaz111.value, vaz112.value];
-
The point values will not be in an array but I believe the data points within the context and you could probably make this script a bit simpler but I can't find any reference to this off hand. I'll see what I can find but in the mean time this script looks fine.
-
OK good. Thank you.
What is that "Variable name" for? It keeps reverting to "my" no matter what I enter there.
-
That is a self referencing variable. so my.value would give you the value of the meta data point. This is useful if you want to add a value to it's self or use the current or past values of the meta data point within the calculation. It prevents you from needing to add the meta data point into the script context which ultimately allows you to import self referencing meta data points through the JSON import without getting errors.