I'm trying to write a device server with PyTango
. I created a list of Attributes for the Server. How do I access the value stored in the attributes by the set_value()
function?
If I have this attribute for example, how can I retrieve the value?
x_pixel_size = attribute(label = "x pixel size", dtype=float,
display_level = DispLevel.OPERATOR,
unit = 'microns', format='5.2f',
access = AttrWriteType.READ,
doc = 'Size of a single pixel along x-axis
of the detector')
self.x_pixel_size.set_value(720)
I want to retrieve the value 720 from the Attribute x_pixel_size
. Is there a way to do this without using additional variables in the server?