# IOT Edge Real Time Analysis

**URL:** <https://forum.wise-paas.advantech.com/t/iot-edge-real-time-analysis/1570>\
**Category:** IoTEdge\
**Tags:** ask-questions\
**Created:** [May 5, 2025, 1:32pm UTC](https://forum.wise-paas.advantech.com/t/iot-edge-real-time-analysis/1570 "2025-05-05T13:32:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Technical\_Integral](https://avatars.discourse-cdn.com/v4/letter/t/a87d85/32.png) [@Technical\_Integral](https://forum.wise-paas.advantech.com/u/Technical_Integral)\
**Post date:** [May 5, 2025, 1:32pm UTC](https://forum.wise-paas.advantech.com/t/iot-edge-real-time-analysis/1570/1 "2025-05-05T13:32:41Z")

</div>

We are trying to compute simple formulas using Real Time analysis. How can we send the results to a property on a given device ?

---

<div class="post-metadata">

**Author:** ![Simon\_Chiu](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Simon\_Chiu](https://forum.wise-paas.advantech.com/u/Simon_Chiu)\
**Post date:** [May 6, 2025, 12:36am UTC](https://forum.wise-paas.advantech.com/t/iot-edge-real-time-analysis/1570/2 "2025-05-06T00:36:50Z")

</div>

Hi @Technical_Integral

Please follow the steps below:

1. Make sure the tag is writable  

2. Go to real time analysis and click add  

3. We need real time device as input and equipment linkage as output. Real time device settings please refer the picture below.  

4. Equipment Linkage settings please refer the picture below. We use “Always effect” and “All conditions” triggerred. Condition is “Temperature exceeds 50” and Result is “Set Alarm to 1”  

5. Press run to execute the logic  

6. Result

---

<div class="post-metadata">

**Author:** ![Technical\_Integral](https://avatars.discourse-cdn.com/v4/letter/t/a87d85/32.png) [@Technical\_Integral](https://forum.wise-paas.advantech.com/u/Technical_Integral)\
**Post date:** [May 6, 2025, 8:17am UTC](https://forum.wise-paas.advantech.com/t/iot-edge-real-time-analysis/1570/3 "2025-05-06T08:17:51Z")

</div>

Thank you for your answer, but after following your instructions, it still doesn’t work. If it is of any importance, we are working in a cloud environment.  
Here’s what I have done :

1. Create a device with a writable property  

2. Create a device detail using that device (here called “device\_Test\_IO”)

3. Create a realtime analysis, and use your guide to set up the Realtime device block and the device linkage block.

In theory, the value of Test\_Calc should be set to two once Test\_IO is greater than 10.

1. Run the realtime analysis
2. Set the Test\_IO value to a number greater than 10 via MQTT.

Here, the Test\_Calc should be equal to 2, but it isn’t.

What must I do ?

---

<div class="post-metadata">

**Author:** ![Technical\_Integral](https://avatars.discourse-cdn.com/v4/letter/t/a87d85/32.png) [@Technical\_Integral](https://forum.wise-paas.advantech.com/u/Technical_Integral)\
**Post date:** [May 6, 2025, 8:45am UTC](https://forum.wise-paas.advantech.com/t/iot-edge-real-time-analysis/1570/4 "2025-05-06T08:45:51Z")

</div>

After some trial and error, we found the following :

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/wisepaasforum/original/1X/51ea8ef660423dc286020191cf336b2c9e02aac2.png)

Using this setup, and naming the variable in calculation defaultModule\_Test\_Calc (which, again, is the name of the variable we want to overwrite), the calculation does seem to work, however, the value isn’t carried to the device shadow.

---

<div class="post-metadata">

**Author:** ![Technical\_Integral](https://avatars.discourse-cdn.com/v4/letter/t/a87d85/32.png) [@Technical\_Integral](https://forum.wise-paas.advantech.com/u/Technical_Integral)\
**Post date:** [May 6, 2025, 8:53am UTC](https://forum.wise-paas.advantech.com/t/iot-edge-real-time-analysis/1570/5 "2025-05-06T08:53:28Z")

</div>

As I said, the values are calculated, but not transfered to the device shadow.

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/wisepaasforum/original/1X/b94066f7bdeb6b3b965251f6c0df3ed7dc21104a.png)  
I also want to note that the interface changed since yesterday. Those changes include :

- The removal of the Device Linkage Block
- The addition of a Device Model field when creating a realtime analysis
- The change from the “Parametre Set” button the “Real Time” button

Is there a guide, or a documentation I could follow to acheive those calculations ?

---

<div class="post-metadata">

**Author:** ![Kelvin\_Huang](https://avatars.discourse-cdn.com/v4/letter/k/c4cdca/32.png) [@Kelvin\_Huang](https://forum.wise-paas.advantech.com/u/Kelvin_Huang)\
**Post date:** [May 9, 2025, 1:35am UTC](https://forum.wise-paas.advantech.com/t/iot-edge-real-time-analysis/1570/6 "2025-05-09T01:35:48Z")

</div>

> [@Technical\_Integral](#):
>
> o want to note that the interface changed since yesterday. Those changes include :
> 
> - The removal of the Device Linkage Block
> - The addition of a Device Model field when creating a realtime analysis
> - The change from the “Parametre Set” button the “Real Time” button
> 
> Is there a guide, or a documentation I could follow to acheive those

So far IOTedge can’t write back calculated result to device, we have reported to RD. They will plan to fix it.
