Closedown

This commit is contained in:
gac-x04sa
2018-10-30 17:35:50 +01:00
parent 77ffebfb84
commit 405e893f26
3 changed files with 4 additions and 319 deletions

View File

@@ -1,14 +1,3 @@
"""
PIX_PATHA_CHN = "X04SA-ES3-CCD:PATHa"
PIX_PATHB_CHN = "X04SA-ES3-CCD:PATHb"
PIX_FNAM_FMT_CHN = "X04SA-ES3-CCD:FNAM_FMT"
PIX_FNUM_CHN = "X04SA-ES3-CCD:FNUM"
PIX_FNAM_CHN = "X04SA-ES3-CCD:FNAM"
PIX_EXPOSE_CHN = "X04SA-ES3-CCD:EXPOSE"
PIX_STATUS_CHN = "X04SA-ES3-CCD:STATUS"
PIX_TRIG_CHN = "X04SA-ES3-CCD:TRIG"
"""
class ImageFilename(DeviceBase, Readable, Readable.StringType):
def __init__(self, pixel):
DeviceBase.__init__(self, "image filename")
@@ -201,15 +190,9 @@ class Pixel(DeviceBase, Readable, Readable.IntegerType):
if sms_flag == 1:
notify ("Pixel detector seems to have recovered from error.")
def logwrite(self):
filename = self.get_log_file()
#"pixel/imagelogs/ccd-log.req"
#inp = sprintf ("%s/ccd-log.req", _1)
#PIX_LOG_CMND = sprintf ("X_X04SA_do_casave.py -- -asciiin %s -asciiout %%s", myFile)
#myCmnd = sprintf (PIX_LOG_CMND, myFile)
inp = "/sls/X04SA/data/x04sa/ES3/expdata/" + "test/" + "pixel/imagelogs/ccd-log.req"
#run("X_X04SA_do_casave.py", ["--", "-asciiin", inp, "-asciiout", filename])
def set_auto_threshold(self):
#TODO
pass
def show(self):
print "\nThe current pixel detector settings are:"
@@ -231,6 +214,7 @@ class Pixel(DeviceBase, Readable, Readable.IntegerType):
def read(self):
#Readable interface: current
return self.get_count_id()
add_device( Pixel("pixel", "X04SA-ES3-CCD"), True)
pixel.polling = 1000