• 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 point and cron trigger

    User help
    1
    3
    2.3k
    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'm using a binary flag to decide whether to increment or decrement a numeric data point.

      i.e.

      value=readlast.value;
      if (bit.value==1) value=value+1;
      if (bit.value==0) value=value-1;
      if (value<0) value=0;
      if (value>60) value=60;
      return value;

      i've tried this on context change, but because one of the context items is actually the output, i get false triggers (tried execution delay but dint help)

      so i resorted to cron, 0/1 * * * ? which does work but i'm also getting odd behaviour.

      but i've noticed this from the watchlist.

      i'm polling every second from the main data source and watching the seconds counting away, it quite often jumps ahead (on totally unrelated sources and my point) then levels out.

      so on the whole, 60 secs is 60 secs, but it will jump from 13 - 15, then hold off etc.

      whats responsible for the internal timing mechanism?

      seems bit erratic :-/

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

        i cannot use event triggers based on time because i need them to be dynamic... but an alternative would to have access the elapsed time of a trigger to i could see where its got to... can i do that?

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