• 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

    Virtual Data Source - Start Value Not Set

    Scheduled Pinned Locked Moved Mango feedback
    3 Posts 2 Posters 1.1k Views 2 Watching
    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.
    • M Offline
      mihairosu
      last edited by

      Example:

      Here is a virtual data points with logging disabled:

      As you can see:

      Start Value = 0
      Text Render for value 0 = Ok

      Data Source:

      0_1532717285741_522acb41-6910-497e-ad35-9ec76d9dade6-image.png

      Data Point:

      0_1532717314688_a20a1a03-91b6-45c2-b125-e42773d04b4e-image.png
      0_1532717325344_228e6714-23c0-450d-afd1-89bde80071ba-image.png

      Point has been enabled, as well as the data source:

      0_1532717373824_5090c11c-4273-42b7-b428-901d2be073b3-image.png

      However, the point shows no data:

      0_1532717413372_68c4ccf3-a180-4a9f-b056-1c44de339884-image.png

      The point value can be manually set, and in that case, the value will be changed.

      1 Reply Last reply Reply Quote 0
      • phildunlapP Offline
        phildunlap
        last edited by phildunlap

        Hi mihairosu,

        The data source is not polling, so it is doing no work and serving only as a data warehouse. I suspect this is why the point has no value.

        I'm not sure I feel strongly one way or the other if it should have that value (at what time, when first enabled?) if the data source isn't polling. The original purpose of the start value is to seed the change type, which doesn't matter if the data source isn't polling. However, it's a really easy change, simply add this to the addDataPoint method in VirtualDataSourceRT

                else if(!vo.isPolling()) {
                    VirtualPointLocatorRT locator = dataPoint.getPointLocator();
                    dataPoint.updatePointValue(new PointValueTime(locator.getCurrentValue(), Common.timer.currentTimeMillis()));
                }
        

        So maybe this will be made to work that way if it seems better... After all, the point's validation makes you put it in.

        1 Reply Last reply Reply Quote 0
        • M Offline
          mihairosu
          last edited by

          Okay, understandable.

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