1 Reply Latest reply on Oct 27, 2017 4:36 AM by vr RSS
    pdwyer Newbie

    Manipulate raw data

    Hi There I have some Raw Data coming into Thingworx from a MODBUS device through Industrial connectivity 8. the raw data is from a tank level sensor. It is in centimetres, I want to display and store it in metres to 2 decimal places. Is there a multiplier field or function say where you could enter 0.01 or something similar to manipulate the raw data>

      • Re: Manipulate raw data
        vr Newbie

        Hi,

         

        You can use subscription to calculate value in Meter

         

        1. Create property with basetype as "NUMBER" and check "Logged"

        1.PNG

        2. Create Subscription based on "DataChange" for RawProperty

        3. In Subscription code, divide raw value by 100 and pass it to "TankLevelinMeter"

             2.PNG

        4. Use "TankLevelinMeter" property to display value in meter