def METHOD_NAME(self, mode):
    if (mode == self.MODE_CONTINUOUS):
        self._aq_mode = mode
        self._cam.frames_per_trigger_zero_for_unlimited = 0
        self._cam.operation_mode = tl_camera.OPERATION_MODE.SOFTWARE_TRIGGERED
    else:
        self._aq_mode = mode
        self._cam.frames_per_trigger_zero_for_unlimited = 1
        if (mode==self.MODE_HARDWARE_TRIGGER):
            self._cam.operation_mode = tl_camera.OPERATION_MODE.HARDWARE_TRIGGERED
        else:
            self._cam.operation_mode = tl_camera.OPERATION_MODE.SOFTWARE_TRIGGERED