• Recent
    • Tags
    • Popular
    • Register
    • Login

    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.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Custom Point Units

    User help
    3
    4
    2.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Xof1986X
      Xof1986
      last edited by

      Hello Everyone!

      Is there a way to add in our own point units?

      I'd like to add in some that we use that aren't in the list.

      Ed

      1 Reply Last reply Reply Quote 0
      • phildunlapP
        phildunlap
        last edited by phildunlap

        Hi Ed,

        Well... yes and no. What unit would you like to use?

        The catch-all 'yes' is that you can deselect 'use units as suffix' in the text renderer for a point, then specify a string of your choosing in the suffix, which will then appear after the value as the units do.

        The 'no' is that if you work in Ed-meters (which are defined as 567 meters, of course) and are trying to use the converting units feature to display a point being read in meters in Ed-meters, you cannot define this unit. If you really need Ed-meters in your application, you can modify the UnitUtil.java class to have your specific unit String defined against its component units such that a converting unit for "Ed-meter" would work to display all values for this point whose units are 'meters' as divided by 567 and displayed as Ed-meters (or however you specify the labeling)

        The 'kind of' part of the answer is that if you're trying to use the converting units to get from a point read in Joules to kWh, you can specify kWh by breaking it into the base units and expressing their relationship, i.e. kW*h

        SI prefixes for magnitude are understood, as are multiplication and division operators to specify complex units. We have discussed giving people the ability to add custom units into the converting units structure, but it hasn't been high enough on our priority list to include yet.

        1 Reply Last reply Reply Quote 0
        • Jared WiltshireJ
          Jared Wiltshire
          last edited by

          Xof1986, just to clarify, yes you can use standard units that aren't listed in the drop-down and combine units. See the documentation below that I have copied from the help link in Mango (the blue help icon) in particular the two links to SI and non-SI units. By combine I mean that you can write V*s or m³/s

          You can specify a Unit for a point. Type in the symbol for the unit e.g. kg, L, mA, Hz, lb. Note that for some units there are multiple ways of entering the unit, e.g. for degrees celsius you can enter °C or Celsius, for ohms you can use Ω or Ohm. Also remember that there are sometimes multiple definitions of a unit, e.g. there are metric tonnes (t), short tons (ton_us) and long tons (ton_uk). You can use all SI prefixes on SI units, e.g. you can enter W for watt and also µW (microwatt), MW (megawatt) etc.
          For SI Units see the list here here.
          For NonSI Units see the list here.
          Note that there are also some units internally defined in this system:

          btu - British thermal unit
          thm - Thermal Unit (BTU * 100000)
          psi - Pounds per square inch
          rpm - Revolutions per minute
          ppm - Part per million
          ppb - Part per billion
          There are also some aliases for common units defined here:
          Celsius - °C
          Fahrenheit - °F
          The Displayed unit specifies which unit the renderer should convert to for display (if supported by the renderer). Input format is the same as for Unit.

          The Integral unit used in the display of statistic and specifies which unit the integrated total should be displayed in. Input format is the same as for Unit.

          Developer at Radix IoT

          1 Reply Last reply Reply Quote -1
          • Xof1986X
            Xof1986
            last edited by

            I was previously avoiding using the suffix since it is tied to the Property Template. I'll go ahead and fine tune the property templates moving instead of using the generic one that I had made.

            Thanks as always guys!

            Ed

            1 Reply Last reply Reply Quote 0
            • First post
              Last post