I have a Data point from a MODBUS device that I read on a periodic basis.
The raw data from the device must be run through a calculation in order to display in the graphical view widget.
I was trying the Metadata data point and was not able to get it to work.
my calculation is simple in javascript:
var my = (p1-640)/16.0;
return my;
does not seem to work, meaning the graphical widget does not update.
What am I missing, is there an example similar to this?