Given a path of withing a tag provider, how to check using the python script if the node the path defines is a tag and not a folder or an UDT?
Thanks!
Given a path of withing a tag provider, how to check using the python script if the node the path defines is a tag and not a folder or an UDT?
Thanks!
Use this:
Analyse the dictionary it returns for the type.
None
. If the node is not a UDT, then this filter choice will not remove the element. As such, this filter functions best when paired with a tagType filter with a value of UdtInstance.{"typeId":"myUDT", "tagType":"UdtInstance"}
A folder will just give you a list of the tags inside it.
Just use system.tag.readBlocking()
with the path plus .tagType
. Simple tags will be Atomic
.