Commit 4b40cb69 authored by Alejandro Homs Puron's avatar Alejandro Homs Puron Committed by operator for beamline

Merge branch 'frelon_camera_serial_nb' into 'master'

frelon: added camera_serial attribute

See merge request !9
parents d93b23f4 8b9860b5
......@@ -148,6 +148,9 @@ class Frelon(PyTango.Device_4Impl):
transfer_time = cam.getTransferTime()
attr.set_value(transfer_time)
def read_camera_serial(self,attr):
serial = _FrelonAcq.m_cam.getModel().getSerialNb()
attr.set_value("%d" % serial)
class FrelonClass(PyTango.DeviceClass):
......@@ -212,6 +215,10 @@ class FrelonClass(PyTango.DeviceClass):
[[PyTango.DevFloat,
PyTango.SCALAR,
PyTango.READ]],
'camera_serial' :
[[PyTango.DevString,
PyTango.SCALAR,
PyTango.READ]],
}
def __init__(self,name) :
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment