How to publish the statistics of any Data Points??
-
Hey there,
Just wondering if it is possible to publish (like via Modbus TCP) the statistics (Max, or Min, or Ave) of any Data Points? If yes, how??
Thanks,
Saeed -
Please enable the api menu from administration->edit menu -> api docs then save. This will provide all the information you need on mangoUI components. Also refer to the examples page at the bottom of the menu for how they are used.
Fox
-
What protocol would you like to publish on? You can make meta points that update to a points stats value you choose then publish them.
-
Hi Craig
Thanks, I want to publish them on Modbus/TCP, do we have any article regarding this??
Saeed
-
I'm still learning about modbus at this time. But if you can make those individual points "settable" then use the
setValue()
call to write your statistical values back to the modbus endpoint then you're away.Look at the setting values example. Just make sure what you are setting is within the parameters of the datatype of your modbus datapoint.
/ui/examples/setting-point-values/set-point
/ui/examples/statistics/get-statistics
Edit: If you're using the publisher, you will likely have to use the mango javascript code then you can return the value to set it for a meta datapoint. Attach this meta datapoint to your modbus tcp/ip publisher and you're away.
/ui/help/scripting-editor/help
Fox
-
@skazemi
use the modbus publisher, then do data transfer your statistics to these points.