import PyTango as pt # create a connection to a Tango device dev = pt.DeviceProxy("domain/family/member")
import PyTango as pt # create a connection to a Tango device dev = pt.DeviceProxy("domain/family/member") # read an attribute value from the device attr_value = dev.read_attribute("attribute_name").value
import PyTango as pt # create a connection to a Tango device dev = pt.DeviceProxy("domain/family/member") # write a value to an attribute on the device new_value = 42 dev.write_attribute("attribute_name", new_value)In summary, PyTango is a Python package library that provides a versatile toolkit for developing Tango-based control systems. It offers a range of tools and APIs for creating connections, reading and writing attribute values, and managing Tango devices.