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