Displaying Unit property in Axiom
I have various tags with the property "Units", like this calculated tag:
I'd like to show this in Axiom, and reading other posts it sounds like I need to create another Value symbol to show the units and add ".Units" to the Source path, like this:
SOLAR BEACON.Beacon_9.EnergySavingYesterday_calc.Units
This seems to work, at least for calculated tags. But I also have the same Units property on some non-calculated tags and for those it is saying Undefined. Any suggestions why?
Ideally, I'd much rather put it in the ValueFormat, something like this:
{Value:N2} {Property:Units}
But that doesn't work, presumably because it's a C# format string underneath. Is there a way to do this so I don't have to have a separate column in my grids just for the units?
5 replies
-
If a tag does not have a Units property, it will return Undefined. Another option is to just include the unit value in the ValueBox itself after the value. So for the ValueFormat option you would use {Value:N2} £.
-
I think I've found the problem:
I was importing the properties into the MQTTData dataset. If I instead import into the SolarBeacon dataset (which I think is some kind of virtual dataset created by the SolarBeacon view?) then the Units property becomes visible in that view and also in Axiom.
I'm still very unsure that I understand what is going on and how it works but I do now have access to the Units property in Axiom.
-
There were two files there because I forced a roll-over, thinking maybe that would prompt the properties to be added in the new file.
Now I think maybe the Units attribute did go into the dataset: When I originally created it, all the tags had names starting with a number. Then I re-did it and added an SB1- or SB2- prefix. The original tags are still there, without the Units property, and those were the ones I was originally checking when I was trying to verify it. The ones with the DB1- and SB2- prefix have the property and maybe did from the start.
I'd like to get rid of the non-prefixed ones. They haven't had any data since last month and just confuse things. But I can't see how to do that.I've figured out how to do that now.