• 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

    Meta data source example

    User help
    2
    4
    2.5k
    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.
    • sjobbeS
      sjobbe
      last edited by

      Hello

      Is this a good way to do it or is the data already in some array so that I do not need to define them like this:

      var meters = [vaz101.value, vaz102.value, vaz103.value, vaz104.value, vaz105.value, vaz106.value, vaz107.value, vaz108.value, vaz109.value, vaz110.value, vaz111.value, vaz112.value];

      metascript.png

      1 Reply Last reply Reply Quote 0
      • JoelHaggarJ
        JoelHaggar
        last edited by

        The point values will not be in an array but I believe the data points within the context and you could probably make this script a bit simpler but I can't find any reference to this off hand. I'll see what I can find but in the mean time this script looks fine.

        1 Reply Last reply Reply Quote 0
        • sjobbeS
          sjobbe
          last edited by sjobbe

          OK good. Thank you.

          What is that "Variable name" for? It keeps reverting to "my" no matter what I enter there.

          1 Reply Last reply Reply Quote 0
          • JoelHaggarJ
            JoelHaggar
            last edited by

            That is a self referencing variable. so my.value would give you the value of the meta data point. This is useful if you want to add a value to it's self or use the current or past values of the meta data point within the calculation. It prevents you from needing to add the meta data point into the script context which ultimately allows you to import self referencing meta data points through the JSON import without getting errors.

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