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.
Calculating a value in page
-
Hello, I have to calculate capacity for a chiller, and I want to know if is possible to calculate this without creating a meta point. I have the following formula:
ChCapacity = (CHW_Flow * (CHW_Return_Temp - CHW_Supply_Temp)*1.8)/24It is possible to calculate this directly on web page and display the result somewhere in page or I have to create a meta point.
-
@georgestefan Its absolutely possible. You can just put your formula into a
ng-bind
attributee.g.
<div id="13688a40-881d-4956-b42a-14362bbe73ef" style="position: absolute; left: 480px; top: 142px;" ng-bind="(CHW_Flow * (CHW_Return_Temp - CHW_Supply_Temp)*1.8)/24"></div>
However I assume those are actually point values in which case it will probably be more like
<div id="13688a40-881d-4956-b42a-14362bbe73ef" style="position: absolute; left: 480px; top: 142px;" ng-bind="(flowPoint.value * (returnTempPoint.value - supplyTempPoint.value)*1.8)/24"></div>
You can also wrap expressions with curly braces
{{ }}
<div> {{ (flowPoint.value * (returnTempPoint.value - supplyTempPoint.value)*1.8)/24 }} </div>
-
@jared-wiltshire Thank you, works well