Closedown

This commit is contained in:
gac-x04sa
2018-10-31 09:30:08 +01:00
parent 24955292e2
commit 7bc1404fc4
4 changed files with 17 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
#Wed Oct 31 09:06:14 CET 2018
#Wed Oct 31 09:08:35 CET 2018
colormap=Flame
colormapAutomatic=true
colormapLogarithmic=false

View File

@@ -1,9 +1,12 @@
set_count_time(1.0)
transm.write(1e-10)
detectors = [mythen, mythen.acquire_time, pixel, pixel.image_filename, image.intensity,image.corrected_intensity, image.matrix]
#detectors = [mythen, mythen.acquire_time, pixel, pixel.image_filename, image.intensity,image.corrected_intensity, image.matrix]
detectors = [mythen, mythen.acquire_time, pixel, pixel.image_filename]
#pixel.set_image_root_folder("/sls/X04SA/data/x04sa/ES3/pixel/images/")
pixel.set_path("tmp", "gobbo")
pixel.set_threshold(40, 500, 8000, 100000)
pixel.show()
pixel.assert_ready()

View File

@@ -119,11 +119,17 @@ class ReadableImage(ReadableMatrix):
add_device( Image("image", pixel), True)
image.matrix.polling = 10
if "_pixelListener" in globals(): pixel.removeListener(_pixelListener)
class PixelListener (DeviceListener):
def onValueChanged(self, device, value, former):
image.matrix.update()
_pixelListener = PixelListener()
pixel.addListener(_pixelListener)
add_device(RegisterMatrixSource("detector_image", image.matrix), True)
detector_image.monitored = True

View File

@@ -37,6 +37,9 @@ class Pixel(DeviceBase, Readable, Readable.IntegerType):
print "connected. Please disconnect in tvx and disconnect and"
print "re-connect with the CCD/Pixel Epics widget."
def set_image_root_folder(self, path):
self.image_root_folder = path
def set_threshold(self, threshold1= None, threshold2= None, threshold3= None, threshold4= None):
if threshold1 is not None:
self.PIX_THRESH1 = threshold1