コード例 #1
0
def cooler(setPoint=None):

    result = get_cooler()

    if setPoint is not None:
        if result == andor.DRV_TEMPERATURE_OFF:
            andor.CoolerON()
        andor.SetTemperature(setPoint)
        get_cooler()
コード例 #2
0
    def warmup(self):
        """
	Pre: Used to warmup camera.
	Post: Sets the temperature to 0 and turns the fan to 0 then turns the cooler off and 
	returns 1 that everything worked.
	"""
        andor.SetTemperature(0)
        andor.SetFanMode(0)
        andor.CoolerOFF()
        return "1"
コード例 #3
0
    def set_cooler(self, setpoint):
        if super(AndorCam, self).set_cooler(setpoint) is None:
            return

        # not safe_call: we need the return value
        result = andor.GetTemperatureF()
        if result[0] == andor.DRV_TEMPERATURE_OFF:
            self.safe_call(andor.CoolerON)
        # NOTE: setTemperature wants only an int...
        andor.SetTemperature(int(setpoint))

        return self.cooler_status()
コード例 #4
0
    def setTEC(self, setPoint=None):

        result = self.getTEC()

        print(setPoint)

        if setPoint is not None:
            if result[0] == andor.DRV_TEMPERATURE_OFF:
                andor.CoolerON()
            print(andor.SetTemperature(int(setPoint)))
            self.getTEC()
        return str(setPoint)