cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Manipulate raw data

pdwyer
1-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>

1 REPLY 1

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

Announcements


Top Tags