Skip to content

Commit 814ff87

Browse files
committed
Merge branch '22-add-lima_version-attr' into 'master'
Resolve "add lima_version attr" Closes esrf-bliss#22 See merge request limagroup/Lima-tango-python!45
2 parents 8e2ceee + 627896a commit 814ff87

2 files changed

Lines changed: 17 additions & 5 deletions

File tree

LimaCCDs.py

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ def init_device(self) :
598598

599599
# Setup a user-defined detector name if it exists
600600
if self.UserInstrumentName:
601-
if SystemHasFeature('Core.HwDetInfoCtrlObj.setUserInstrumentName'):
601+
if SystemHasFeature('Core.HwDetInfoCtrlObj.setInstrumentName'):
602602
self.__detinfo.setUserInstrumentName(self.UserInstrumentName)
603603
else:
604604
deb.Warning('UserInstrumentName not supported in this version')
@@ -701,6 +701,12 @@ def apply_config(self) :
701701

702702
## @brief Read the Lima Type
703703
#
704+
@RequiresSystemFeature('Core.CtControl.getVersion')
705+
@Core.DEB_MEMBER_FUNCT
706+
def read_lima_version(self,attr) :
707+
value = self.__control.getVersion()
708+
attr.set_value(value)
709+
704710
@Core.DEB_MEMBER_FUNCT
705711
def read_lima_type(self,attr) :
706712
value = self.LimaCameraType
@@ -738,19 +744,19 @@ def write_user_detector_name(self,attr) :
738744

739745
## @brief Read the user instrument name
740746
#
741-
@RequiresSystemFeature('Core.HwDetInfoCtrlObj.getUserInstrumentName')
747+
@RequiresSystemFeature('Core.HwDetInfoCtrlObj.getInstrumentName')
742748
@Core.DEB_MEMBER_FUNCT
743749
def read_user_instrument_name(self,attr) :
744-
value = self.__detinfo.getUserInstrumentName()
750+
value = self.__detinfo.getInstrumentName()
745751
attr.set_value(value)
746752

747753
## @brief Write the user instrument name
748754
#
749-
@RequiresSystemFeature('Core.HwDetInfoCtrlObj.setUserInstrumentName')
755+
@RequiresSystemFeature('Core.HwDetInfoCtrlObj.setInstrumentName')
750756
@Core.DEB_MEMBER_FUNCT
751757
def write_user_instrument_name(self,attr) :
752758
data = attr.get_write_value()
753-
self.__detinfo.setUserInstrumentName(data)
759+
self.__detinfo.setInstrumentName(data)
754760

755761
## @brief Read the Camera pixelsize
756762
#
@@ -2153,6 +2159,10 @@ class LimaCCDsClass(PyTango.DeviceClass) :
21532159

21542160
# Attribute definitions
21552161
attr_list = {
2162+
'lima_version':
2163+
[[PyTango.DevString,
2164+
PyTango.SCALAR,
2165+
PyTango.READ]],
21562166
'lima_type':
21572167
[[PyTango.DevString,
21582168
PyTango.SCALAR,

doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ few of them.
143143
Attribute name RW Type Description
144144
=========================== ======= ======================= =======================================================================================
145145
\ \ **GENERAL INFORMATION** \
146+
lima_version ro DevString The lima core library version number
146147
lima_type ro DevString LImA camera type:
147148
Maxipix,Pilatus,Frelon,Pco, Basler ...
148149
camera_type ro DevString Like lima_type but in upper-case !!
@@ -270,6 +271,7 @@ image_flip rw DevBoolean[2] Flip on the image, [0] = flip over X ax
270271
image_rotation rw DevString Rotate the image: "0", "90", "180" or "270"
271272
\ \ \ \
272273
\ \ **SHUTTER** \
274+
shutter_ctrl_is_available ro DevBoolean Return true if the camera has a shutter control
273275
shutter_mode rw DevString Synchronization for shutter, modes are available:
274276
- **Manual**
275277
- **Auto_frame**, the output signal is activated for each individual frame of a sequence

0 commit comments

Comments
 (0)