import tango # Connect to device dev_name = 'my/device/1' dev_proxy = tango.DeviceProxy(dev_name) # Get attribute value attr_value = dev_proxy.read_attribute('attr_name').value print(attr_value)
import tango # Connect to device dev_name = 'my/device/1' dev_proxy = tango.DeviceProxy(dev_name) # Execute command dev_proxy.command_inout('cmd_name', 'param1', 'param2')
import tango # Connect to device dev_name = 'my/device/1' dev_proxy = tango.DeviceProxy(dev_name) # Get device properties dev_props = dev_proxy.get_device_properties() print(dev_props)This example shows how to get all the properties associated with a Tango device 'my/device/1'. All these examples use PyTango library for communication with Tango devices.