13 Replies Latest reply on Sep 19, 2017 7:08 AM by ap-2 RSS
    ap-2 Explorer

    Storing data in Values stream

    Hi,

    I am Successfully reading Sensor values to Thingworx, I have kept 5secs for autorefresh widget,

    the values are updating every 5secs ,but i want all Values should be stored in Valuestream every second ,In "QueryPropertyHistory" its showing only 2-3 values., i want to see each and every reading that had been sent to Thingworx proprties. How to do it??

    please help

    Untitled.png

      • Re: Storing data in Values stream
        ap-2 Explorer

        And I chose "Valuestream",, should i try with "Remote value stream"??

        • Re: Storing data in Values stream
          supandey Collaborator

          Akshaya, ValueStream is the right option for you. Remote Value Stream has different purpose (i.e when you are setting up federated ThingWorx). How fast is the value changing on the edge device? What is the Data Change Type for the property in the Thing? How often are you scanning for property change on the edge? All of these parameters will affect how many values you are seeing in a given time period in your value stream.

            • Re: Storing data in Values stream
              supandey Collaborator

              It really depends if you want all values, doesn't matter whether its changing or not to be pushed to the platform then you can set to always. In that case every time scan is performed by the SDK value will be pushed to the platform.

               

              Usually in production environment you are mostly interested when the values do change for e.g. changing from 1 to 2 this will create a event and value will be pushed to the platform with the next scan. If it will change again back to 1 from 2 it will again be pushed to the platform. (Note i am not including yet the Threshold in discussion here, so assuming its  not set.)

               

              So I think you should check how fast you are scanning for value change on the edge side. BTW, the screenshot you have shared appear to show that data change type is set to Always. So with that you will get all the values with every scan.

               

              Which SDK are you working with?