Exemple #1
0
 def __init__(self, **kwargs):
     self._physical_elements = []
     self._in_start_move = False
     kwargs['elem_type'] = ElementType.MotorGroup
     PoolGroupElement.__init__(self, **kwargs)
     on_change = self.on_change
     self._position = Position(self, listeners=on_change)
Exemple #2
0
 def __init__(self, **kwargs):
     self._physical_elements = []
     self._in_start_move = False
     kwargs['elem_type'] = ElementType.MotorGroup
     PoolGroupElement.__init__(self, **kwargs)
     on_change = self.on_change
     self._position = Position(self, listeners=on_change)
 def __init__(self, **kwargs):
     self._state_lock = threading.Lock()
     self._monitor_count = None
     self._repetitions = 1
     self._acquisition_mode = AcqMode.Timer
     self._config = None
     self._config_dirty = True
     self._moveable = None
     self._moveable_obj = None
     self._synchronization = []
     # dict with channel and its acquisition synchronization
     # key: PoolBaseChannel; value: AcqSynch
     self._channel_to_acq_synch = {}
     # dict with controller and its acquisition synchronization
     # key: PoolController; value: AcqSynch
     self._ctrl_to_acq_synch = {}
     kwargs['elem_type'] = ElementType.MeasurementGroup
     PoolGroupElement.__init__(self, **kwargs)
     configuration = kwargs.get("configuration")
     self.set_configuration(configuration)
     # if the configuration was never "really" written e.g. newly created MG
     # just sets it now so the _channe_to_acq_synch and _ctrl_to_acq_synch
     # are properly populated
     # TODO: make it more elegant
     if configuration is None:
         configuration = self.get_configuration()
         self.set_configuration(configuration, propagate=0, to_fqdn=False)
Exemple #4
0
 def __init__(self, **kwargs):
     self._integration_time = None
     self._monitor_count = None
     self._acquisition_mode = AcqMode.Timer
     self._config = None
     self._config_dirty = True
     kwargs['elem_type'] = ElementType.MeasurementGroup
     PoolGroupElement.__init__(self, **kwargs)
     self.set_configuration(kwargs.get('configuration'))
    def __init__(self, **kwargs):
        self._state_lock = threading.Lock()
        self._monitor_count = None
        self._nb_starts = 1
        self._pending_starts = 0
        self._acquisition_mode = AcqMode.Timer
        self._config = MeasurementConfiguration(self)
        self._config_dirty = True
        self._moveable = None
        self._moveable_obj = None
        # by default software synchronizer initial domain is set to Position
        self._sw_synch_initial_domain = SynchDomain.Position

        self._synchronization = SynchronizationDescription()

        kwargs['elem_type'] = ElementType.MeasurementGroup
        PoolGroupElement.__init__(self, **kwargs)
        configuration = kwargs.get("configuration")
        if configuration is None:
            user_elements = self.get_user_elements()
            configuration = build_measurement_configuration(user_elements)
        self.set_configuration_from_user(configuration)
Exemple #6
0
    def __init__(self, **kwargs):
        self._state_lock = threading.Lock()
        self._monitor_count = None
        self._nb_starts = 1
        self._pending_starts = 0
        self._acquisition_mode = AcqMode.Timer
        self._config = MeasurementConfiguration(self)
        self._config_dirty = True
        self._moveable = None
        self._moveable_obj = None
        # by default software synchronizer initial domain is set to Position
        self._sw_synch_initial_domain = SynchDomain.Position

        self._synchronization = SynchronizationDescription()

        kwargs['elem_type'] = ElementType.MeasurementGroup
        PoolGroupElement.__init__(self, **kwargs)
        configuration = kwargs.get("configuration")
        if configuration is None:
            user_elements = self.get_user_elements()
            configuration = build_measurement_configuration(user_elements)
        self.set_configuration_from_user(configuration)