Skip to content
Snippets Groups Projects
Commit 4f44807c authored by Roberto Borghes's avatar Roberto Borghes
Browse files

Added the DB property ReadOutTime, important for shutterless mode, depends on...

Added the DB property ReadOutTime, important for shutterless mode, depends on the detector type (3 - 5 msec)
parent e768dd84
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# license : # license :
# ============================================================================ # ============================================================================
# #
# File : PilatusXM.pyf # File : PilatusXM.py
# #
# Project : Interface class for the Pilatus detectors # Project : Interface class for the Pilatus detectors
# #
...@@ -1009,8 +1009,8 @@ class PilatusXM (PyTango.LatestDeviceImpl): ...@@ -1009,8 +1009,8 @@ class PilatusXM (PyTango.LatestDeviceImpl):
self.read_ExposurePeriod(expPeriodAttr) self.read_ExposurePeriod(expPeriodAttr)
expTimeAttr = fakeAttr() expTimeAttr = fakeAttr()
self.read_ExposureTime(expTimeAttr) self.read_ExposureTime(expTimeAttr)
if (expPeriodAttr.value < (expTimeAttr.value + 0.003) ): if (expPeriodAttr.value < (expTimeAttr.value + self.ReadOutTime) ):
expPeriodAttr.set_value(expTimeAttr.value + 0.003) expPeriodAttr.set_value(expTimeAttr.value + self.ReadOutTime)
self.write_ExposurePeriod(expPeriodAttr) self.write_ExposurePeriod(expPeriodAttr)
fullname = "%s%05d%s" % (self.attr_FilePrefix_read,self.attr_FileStartNum_read,self.attr_FilePostfix_read) fullname = "%s%05d%s" % (self.attr_FilePrefix_read,self.attr_FileStartNum_read,self.attr_FilePostfix_read)
trgModes = {0:"exposure", 1:"extenable",2:"exttrigger",3:"extmtrigger"} trgModes = {0:"exposure", 1:"extenable",2:"exttrigger",3:"extmtrigger"}
...@@ -1098,11 +1098,16 @@ class PilatusXMClass(PyTango.DeviceClass): ...@@ -1098,11 +1098,16 @@ class PilatusXMClass(PyTango.DeviceClass):
'ServerAddress': 'ServerAddress':
[PyTango.DevString, [PyTango.DevString,
"The IP address of the PilatusXM camserver.", "The IP address of the PilatusXM camserver.",
True,
[] ], [] ],
'Simulation': 'Simulation':
[PyTango.DevBoolean, [PyTango.DevBoolean,
'', '',
[False]], [False]],
'ReadOutTime':
[PyTango.DevFloat,
"Minimum ReadOUt influences the minimum difference between ExposurePeriod and ExposureTime.",
[0.003]],
} }
......
<?xml version="1.0" encoding="ASCII"?> <?xml version="1.0" encoding="ASCII"?>
<pogoDsl:PogoSystem xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:pogoDsl="http://www.esrf.fr/tango/pogo/PogoDsl"> <pogoDsl:PogoSystem xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:pogoDsl="http://www.esrf.fr/tango/pogo/PogoDsl">
<classes name="PilatusXM" pogoRevision="9.6"> <classes name="PilatusXM" pogoRevision="9.6">
<description description="Pilatus detectors are a series pixel detecors build by DECTRIS&#xA;&lt;br />&#xA;http://www.dectris.com.&#xA;&lt;br />&#xA;All detectors of this series can talk to the outside world via a socket&#xA;connection. An ASCI protocol is used on this sockect connection to&#xA;communicate with the detector.&#xA;&lt;p>&#xA;The server process which handles the socket on the detecor PC is&#xA;called camserver. Only one client can commumicate with camserver.&#xA;If the native client tvx is connected, the device server cannot connect until&#xA;tvx gets disconnected.&#xA;&lt;/p>" title="Interface class for the Pilatus detectors" sourcePath="/home/roberto.borghes/devel/spe/ds/PilatusXM" language="Python" filestogenerate="XMI file,Code files,Protected Regions" license="GPL" hasMandatoryProperty="true" hasConcreteProperty="true" hasAbstractCommand="false" hasAbstractAttribute="false"> <description description="Pilatus detectors are a series pixel detecors build by DECTRIS&#xA;&lt;br />&#xA;http://www.dectris.com.&#xA;&lt;br />&#xA;All detectors of this series can talk to the outside world via a socket&#xA;connection. An ASCI protocol is used on this sockect connection to&#xA;communicate with the detector.&#xA;&lt;p>&#xA;The server process which handles the socket on the detecor PC is&#xA;called camserver. Only one client can commumicate with camserver.&#xA;If the native client tvx is connected, the device server cannot connect until&#xA;tvx gets disconnected.&#xA;&lt;/p>" title="Interface class for the Pilatus detectors" sourcePath="/home/roberto.borghes/devel/spe/ds/PilatusXM/src" language="Python" filestogenerate="XMI file,Code files,Protected Regions" license="GPL" hasMandatoryProperty="true" hasConcreteProperty="true" hasAbstractCommand="false" hasAbstractAttribute="false">
<inheritances classname="Device_4Impl" sourcePath=""/> <inheritances classname="Device_4Impl" sourcePath=""/>
<identification contact="at elettra.eu - sci.comp" author="sci.comp" emailDomain="elettra.eu" classFamily="Instrumentation" siteSpecific="" platform="Unix Like" bus="Ethernet" manufacturer="Dectris" reference=""/> <identification contact="at elettra.eu - sci.comp" author="sci.comp" emailDomain="elettra.eu" classFamily="Instrumentation" siteSpecific="" platform="Unix Like" bus="Ethernet" manufacturer="Dectris" reference=""/>
</description> </description>
...@@ -14,6 +14,11 @@ ...@@ -14,6 +14,11 @@
<status abstract="false" inherited="false" concrete="true" concreteHere="true"/> <status abstract="false" inherited="false" concrete="true" concreteHere="true"/>
<DefaultPropValue>False</DefaultPropValue> <DefaultPropValue>False</DefaultPropValue>
</deviceProperties> </deviceProperties>
<deviceProperties name="ReadOutTime" description="Minimum ReadOUt influences the minimum difference between ExposurePeriod and ExposureTime.">
<type xsi:type="pogoDsl:FloatType"/>
<status abstract="false" inherited="false" concrete="true" concreteHere="true"/>
<DefaultPropValue>0.003</DefaultPropValue>
</deviceProperties>
<commands name="State" description="This command gets the device state (stored in its &lt;i>device_state&lt;/i> data member) and returns it to the caller." execMethod="dev_state" displayLevel="OPERATOR" polledPeriod="0"> <commands name="State" description="This command gets the device state (stored in its &lt;i>device_state&lt;/i> data member) and returns it to the caller." execMethod="dev_state" displayLevel="OPERATOR" polledPeriod="0">
<argin description="none."> <argin description="none.">
<type xsi:type="pogoDsl:VoidType"/> <type xsi:type="pogoDsl:VoidType"/>
......
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