Is there a python equivalent to this expression function?
Yes, system.tag.read(“Path/To/Tag”). The path is jus a string.
tag(path) returns a tag object.
system.tag.read(path) returns a qualified value.
I need a python function that returns a tag object not it’s current value.
Or the correct syntax for:
runScript('app.functionRequiringATagObject(tag(path/to/tag))')
The tag function in the expression language returns the value not the tag object. The datatype is just an Object because a tag can be a boolean, integer, string, float, etc. If you want a specific part of the tag you have to address it:
Path/To/Tag.SomeProperty
Thanks for the clarification.