• 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

    How to recalculate a meta data point for entire history of context var

    How-To
    2
    4
    738
    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.
    • T
      till
      last edited by

      Bonjour,

      I've got a meta data point M that uses a context var X.
      X has existing historical values while M is new. How can I get M to run against all historic values?

      Thanks

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

        Welcome to the forum Till!

        If you use

        X.value 
        

        In your script and run the history against it, the script will use the time in the context and match it against the value at that time.

        Hope that answers your question!

        Fox

        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
        • T
          till
          last edited by

          Thanks Fox,

          That's what I hoped. I just cannot see where to 'run the history'

          Neither in old nor new UI

          Cheers
          Till

          T 1 Reply Last reply Reply Quote 0
          • T
            till @till
            last edited by

            @till

            Found it!

            Generate History
            When creating a new Meta Point sometimes it is helpful to backfill values for it. This can be done by the generate history link in the Data Points table.

            The most recent saved value for all Context Points is found and that date is used for the Starting date for the simulation. (If any context point has no saved values the Generation will fail here)
            The oldest saved value for the Meta Point is found and that is used as the Ending date for the simulation. (If no values exist the current time is used)
            The simulation is run from Starting to Ending times and a values are created and saved according to the Meta Point settings.
            This means that a history can only be generated for times before the earliest Meta Point value.
            Calls to set() tell the database to save this value regardless of logging type and do not send it out through the data source

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