Hello,
I'm doing a script to export a bunch of tag and eventually write an excel file that will be imported in Pi.
I use system.tag.browse to get the list of tags. Then with system.tag.readBlocking I'm getting the opcitempath.
But some tags are scaled. How can I read the tag Scale Mode? Not that the Scale Mode can be overwritten from the original UDT.
Thanks.
Try appending ".scaleMode" to the tag path and passing it to system.tag.readBlocking
.
pturmel
February 11, 2025, 6:24pm
3
Consider using system.tag.query()
instead of system.tag.browse()
. Include all of the properties of interest in your query dictionary. Then you don't need a follow-up system.tag.readBlocking()
, and the whole thing will run blistering fast.
1 Like
It's not working. I tried both scaleMode and ScaleMode...
I'll take a look at the Phil's idea.
pturmel
February 11, 2025, 6:36pm
5
The designer's tag report tool will write the beginning of the script for you. Literally.
Thank you Phil. This is the way to go.
I think I'll never user system.tag.browser again...