def METHOD_NAME(self, power):
    self._check_interlock()
    if power < 0 or power > 1:
        raise RuntimeError('Error setting laser power: Power must be between 0 and 1')
    self.power = power
    p = 0xFFF*power
    ps = '%03X' %p
    ret, = self._query('SLP', ps)
    if not ret == '>':
        raise RuntimeError('Error setting laser power')
    #if self.isOn:
    #    self.TurnOn() #turning on actually sets power