Exemplo n.º 1
0
    def __init__(self, name, panelName, detectorName, shutterName=None):
        DetectorBase.__init__(self)
        self.setName(name)
        self.setInputNames(['exposure'])
        self.setExtraNames([])
        #		self.setOutputFormat(['%.2f']);

        self.panel = panelName
        self.detector = vars(gdamain)[detectorName]
        self.epicsDriver = self.detector.getAdDriverPilatus()

        self.detectorInfo = None
        #		self.dataHolder = ScanFileHolder()
        self.dataHolder = None
        self.exposureTime = 0
        self.sum = 0
        self.maxpix = 0

        #		self.filePath = None;
        #		self.filePrefix = None;
        #		self.fileFormat = "%s%s%4.4d.tif";
        #		self.fileNumber = self.detector.getFileNumber();

        self.fileName = None
        self.filePrefix = None
        self.subDir = None

        self.logScale = False
        self.alive = True

        ShutterDeviceClass.__init__(self, shutterName)
        MetadataConsumerClass.__init__(self)
Exemplo n.º 2
0
    def __init__(self, name, rootPV, channel, shutterName=None):
        AdcScalerClass.__init__(self, name, rootPV)
        ShutterDeviceClass.__init__(self, shutterName)

        self.setExtraNames([])
        self.setOutputFormat(["%20.12f"])

        self.channel = channel
Exemplo n.º 3
0
    def __init__(self, name, scaler, channel, shutterName=None):
        StructScalerGdaClass.__init__(self, name, scaler)
        ShutterDeviceClass.__init__(self, shutterName)

        self.setExtraNames([])
        self.setOutputFormat(["%20.12f"])

        self.channel = channel
Exemplo n.º 4
0
    def __init__(self, name):
        self.setName(name)
        #		self.setInputNames(['ExposureTime'])
        self.Units = ['sec']
        self.setOutputFormat(['%6.2f'])
        self.setLevel(7)
        self.timer = TicToc()
        self.exposureTime = 1
        self.currenttime = self.timer()
        self.waitfortime = self.currenttime + self.exposureTime
        self.output = 0

        self.debug = False
        ShutterDeviceClass.__init__(self)
Exemplo n.º 5
0
    def __init__(self, name, panelName, zippedImageSource, fileImageExtension):
        self.setName(name)
        #		self.setInputNames([]);
        self.setLevel(7)

        self.panel = panelName
        self.dataHolder = None
        self.triggerTime = 0

        self.filePath = None
        self.filePrefix = None
        self.subDir = None
        self.logScale = False
        self.alive = True

        #		self.imageProducer=ZipImageProducerClass('/scratch/Dev/gdaDev/gda-config/i07/scripts/Diamond/Pilatus/images100K.zip', 'tif');
        self.imageProducer = ZipImageProducerClass(zippedImageSource,
                                                   fileImageExtension)
        self.fullImageFileName = None

        MetadataConsumerClass.__init__(self)
        ShutterDeviceClass.__init__(self)