Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website

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


  • @skazemi

    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.
    0_1597370821267_Screen Shot 2020-08-14 at 12.04.27 pm.png