Hi,
Given the tag Paths as list.
How we get collectively each tag's properties (e.g. formatString, dataType, engUnit, etc)?
Hi,
Given the tag Paths as list.
How we get collectively each tag's properties (e.g. formatString, dataType, engUnit, etc)?
You can use the system.tag.getConfiguration().
Thanks.
I tried using system.tag.getConfigurations()
but only returned the following properties:
tags = system.tag.getConfiguration(path, False)
for tagDict in tags:
for key, value in tagDict.iteritems():
system.perspective.print(key)
Where are the rest of properties such as (engUnit)?
getConfiguration
doesn't return properties that have their default values.
Consider making the tag report tool return all of the properties of interest.
You can use a tag read as well. See Paul's example at the bottom of this topic for inspiration.
FWIW, i tried reading path/to/Tag.jsonValues but returned nothing
read = system.tag.readBlocking(['[default]Practice Alarming/Alarm Tag 1.jsonValues'])
system.perspective.print(read)
output: