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

Metadatasource - reference itself


  • 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


  • 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


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


  • 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.