Live UNITS data link

I can't seem to get the right combination of configuration options to get a units field to show. I want to show just a datalink with AI1/OUT_SCALE.UNITS.  Most i can get is the number value associated with it. But, not the string. I don't want the PV value. I'm just trying to show the units.

  • Hi TreyB,

    Try this: DLSYS["MODULE/FUNCTIONBLOCK/OUT_SCALE.UNITS.STR"]. Set the Datalink to Type string.

    Since the units are a Named Set, the datalink is resolving to the enumeration of that particular unit. The suffix .STR will convert it to its string value.

    Camilo

    Camilo Fadul | DeltaV Solution Marketing Director

    https://www.linkedin.com/in/cfadul

  • In reply to Camilo Fadul:

    I was going to do that at one point but then decided it probably wouldn't work .. i didn't know i could have two ".xxx" fields in a path. That did the trick. THanks!
  • In reply to TreyB:

    The typescript syntax allows for the second extensions to coerce the data. The .STR and .NUM are not DeltaV parameter fields, like .CV or .ST or .EU0, etc. They allow you to force the data to be a number or a string, provided the value conforms to that. i.e. you can't force a text value like "UNITS" into a Number.

    In the case of EU Units, these are indexed in DeltaV and the controller provides the index number of the Units when the Scaling parameter is communicated. By adding .STR to the path for SCALE.UNITS, it tells Live to resolve the index to its corresponding string. It is not a NAMED_SET per se, but it is an index list. I'm still trying to wrap my head around the syntax using .NUM and .STR. welcome to the learning curve.

    Andre Dicaire