• 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

    Metadatasource - reference itself

    User help
    2
    5
    1.6k
    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.
    • S
      skiv71
      last edited by

      hi, i have a meta, with this as follows...

      [script to monitor number of mins that temp is above a certain limit]

      value=mon.value;
      if (temp.value>=(sp.value+offset.value)) value=value+1;
      else value=0;
      return value;

      this script is set to run at the start of each minute..

      basically....

      if temp >= setpoint + offset, increment meta point...

      then i have a binary meta which....

      if no. of mins >= delay mins, value=true, else false...

      this all works but the awkward bit if the first meta point referencing itself (necessary for the increment?)

      mainly because i cannot pick the meta "mon" until i've created the point and left and returned to meta point editing..

      is there another way i can reference the value?

      thanks

      1 Reply Last reply Reply Quote 0
      • S
        skiv71
        last edited by

        i realise i can do this with an alarm trigger from a binary meta point based on temp, sp and offset... but i want to give the user the ability to alter the alarm delay, and so this needs to be a data point..

        and as far as i'm aware, i cannot link an alarm delay to a data point.

        thanks

        1 Reply Last reply Reply Quote 0
        • M
          mlohbihler
          last edited by

          Can't you just use a high limit detector on the temp point?

          Best regards,
          Matthew

          1 Reply Last reply Reply Quote 0
          • S
            skiv71
            last edited by

            i could but i want to make it compare to a point variable instead of fixed value so that an end user can change the level.

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