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.
Setting Min/Max levels dynamically for tanks
-
Hello. I'm curious if there's a way to set the min and/or max attributes for the ma-tank-level object. Since the high level in my tank is dynamic depending on what it's being used for I'd like to be able to set the max level based on a point value. Is this possible? I've been playing with the dashboard designer for 2 days trying to figure out a way to make it work, but so far it eludes me. Thanks in advance!
-
Something like this will do the trick
<div class="ma-designer-root" id="20dbb78c-92c3-4153-b4fd-4e281bf52ebb" style="width: 1366px; height: 768px; position: relative;"> <ma-tank-level id="353257ad-8b4f-4a3f-bd56-199ec886a323" style="position: absolute; width: 378px; height: 372px; left: 113px; top: 101px;" point-xid="zero_to_hundred" max="tankCapacityPoint.value" min="0"></ma-tank-level> <ma-get-point-value id="efe64f60-a9eb-469d-9df7-62eae42bc730" style="position: absolute; left: 540px; top: 177px;" point-xid="tank_capacity_point_xid" point="tankCapacityPoint"></ma-get-point-value> </div>
-
@jared-wiltshire said in Setting Min/Max levels dynamically for tanks:
Thank you Jared. That's essentially what I have been trying (I think), with the exception that I'm using a point from the watch list instead of using the XID:
<ma-tank-level id="d21fdc19-e1ab-40db-97fc-3a29c215a762" style="position: absolute; width: 200px; height: 200px; left: 165px; top: 344px;" point="designer.points | filter:{name:'CTD1'}:true | maFirst" min="0" options="" max="tankFillPoint.value"></ma-tank-level> <ma-get-point-value id="815edcc0-dda5-4daa-9952-e33f9c6ec0b5" style="position: absolute; left: 165px; top: 292px;" point="designer.points | filter:{name:'DS1'}:true | maFirst" points="tankFillPoint"></ma-get-point-value>
The code I'm using essentially ignores the point value and uses 100 (the default value). Do I need to use the XID instead?
Thanks, Andrew.
-
@ASwingler You are using the
points
attribute of<ma-get-point-value>
wrong.I think what you are looking for is
<ma-tank-level id="d21fdc19-e1ab-40db-97fc-3a29c215a762" style="position: absolute; width: 200px; height: 200px; left: 165px; top: 344px;" point="designer.points | filter:{name:'CTD1'}:true | maFirst" min="0" options="" max="(designer.points | filter:{name:'DS1'}:true | maFirst).value"></ma-tank-level> <ma-get-point-value id="815edcc0-dda5-4daa-9952-e33f9c6ec0b5" style="position: absolute; left: 165px; top: 292px;" point="designer.points | filter:{name:'DS1'}:true | maFirst"></ma-get-point-value>
-
Thank you - that was exactly what I needed.