• Recent
    • Tags
    • Popular
    • Register
    • Login

    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 Mango 5 Documentation Website

    Triggering a counter data point to enable and restart

    User help
    3
    3
    855
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      iperry
      last edited by

      Heya,

      This seems like a simple thing to do but I haven't found anything that is. Maybe it has been a long week. heh

      What I have is a virtual point set to increment by 1 in a virtual data source that will poll every 1 second. I have a meta point that will reset that virtual point to 0 and enable it based on conditions of another point.

      Is this the way to create a counter that is triggered? It seems sorta complex.

      Thanks
      Ian

      1 Reply Last reply Reply Quote 0
      • CraigWebC
        CraigWeb
        last edited by

        @iperry said in Triggering a counter data point to enable and restart:

        enable it

        I think you might be better off using a scripting data source running on a cron pattern. You can have all your logic in one script to increment and reset as needed by bringing in extra context points.

        1 Reply Last reply Reply Quote 0
        • MattFoxM
          MattFox
          last edited by MattFox

          Use an event handler and trigger it which runs a script which increments, enables/disables values using a the supplied scripting context points when it has fired. Use the Set Point value type handler.

          Do not follow where the path may lead; go instead where there is no path.
          And leave a trail - Muriel Strode

          1 Reply Last reply Reply Quote 0
          • First post
            Last post