Get OPCItemPath and OPCServer values of UTD Opc Tag Property

The OPCServer and OPCItemPath are dot properties of the OPC tag. So to read their values, you would do something like the following, assuming your OPC tag was named MyOPCTag.

qv = system.tag.read(“MyOPCTag.OPCServer”)
opcServer = qv.value
print "The OPC server is " + str(opcServer)

qv = system.tag.read(“MyOPCTag.OPCItemPath”)
opcItemPath = qv.value
print "The OPC item path is " + str(opcItemPath)