Exemplo n.º 1
0
 def set_exposure(self, exptime, frametype = "normal"):
     """set the exposure time, 'exptime' in milliseconds and the 
        'frametype' as 'normal' or 'dark'"""
     exptime = c_long(exptime)        
     if frametype == "normal":
         frametype = fliframe_t(FLI_FRAME_TYPE_NORMAL)
     elif frametype == "dark":
         frametype = fliframe_t(FLI_FRAME_TYPE_DARK)
     else:
         raise ValueError("'frametype' must be either 'normal' or 'dark'")
     self._libfli.FLISetExposureTime(self._dev, exptime)
     self._libfli.FLISetFrameType(self._dev, frametype)
Exemplo n.º 2
0
 def set_exposure(self, exptime, frametype="normal"):
     """set the exposure time, 'exptime' in milliseconds and the 
        'frametype' as 'normal' or 'dark'"""
     exptime = c_long(exptime)
     if frametype == "normal":
         frametype = fliframe_t(FLI_FRAME_TYPE_NORMAL)
     elif frametype == "dark":
         frametype = fliframe_t(FLI_FRAME_TYPE_DARK)
     else:
         raise ValueError("'frametype' must be either 'normal' or 'dark'")
     self._libfli.FLISetExposureTime(self._dev, exptime)
     self._libfli.FLISetFrameType(self._dev, frametype)
Exemplo n.º 3
0
 def set_exposure(self, exptime, frametype = "normal"):
     """setup the exposure type:
            exptime   - exposure time in milliseconds 
            frametype -  'normal'     - open shutter exposure
                         'dark'       - exposure with shutter closed
                         'rbi_flush'  - flood CCD with internal light, with shutter closed
     """
     exptime = c_long(exptime)        
     if frametype == "normal":
         frametype = fliframe_t(FLI_FRAME_TYPE_NORMAL)
     elif frametype == "dark":
         frametype = fliframe_t(FLI_FRAME_TYPE_DARK)
     elif frametype == "rbi_flush":
         #FIXME note: FLI_FRAME_TYPE_RBI_FLUSH = FLI_FRAME_TYPE_FLOOD | FLI_FRAME_TYPE_DARK
         # is this always the correct mode?
         frametype = fliframe_t(FLI_FRAME_TYPE_RBI_FLUSH)
     else:
         raise ValueError("'frametype' must be either 'normal','dark' or 'rbi_flush'")
     self._libfli.FLISetExposureTime(self._dev, exptime)
     self._libfli.FLISetFrameType(self._dev, frametype)