def prepare_meas(self, config): """ Prepare measurement group and returns the channel names""" pool = self.pool # creating mg user configuration and obtaining channel ids mg_conf, channel_ids, channel_names = \ createMGUserConfiguration(pool, config) conf = copy.deepcopy(dummyMeasurementGroupConf01) conf["name"] = 'mg1' conf["full_name"] = 'mg1' conf["user_elements"] = channel_ids self.pmg = createPoolMeasurementGroup(pool, conf) pool.add_element(self.pmg) self.pmg.set_configuration_from_user(mg_conf, to_fqdn=False) return channel_names
def prepare_meas(self, config): """ Prepare measurement group and returns the channel names""" pool = self.pool # creating mg user configuration and obtaining channel ids mg_conf, channel_ids, channel_names = \ createMGUserConfiguration(pool, config) conf = copy.deepcopy(dummyMeasurementGroupConf01) conf["name"] = 'mg1' conf["full_name"] = 'mg1' conf["user_elements"] = channel_ids self.pmg = createPoolMeasurementGroup(pool, conf) pool.add_element(self.pmg) self.pmg.set_configuration_from_user(mg_conf) return channel_names
def setUp(self): """Setup: - Use resources for Controller, CounterTimer and MeasurementGroup features. - Create Controller, CounterTimer and MeasurementGroup. """ pool = FakePool() pc = createPoolController(pool, dummyPoolCTCtrlConf01) pct = createPoolCounterTimer(pool, pc, dummyCounterTimerConf01) pc.add_element(pct) pool.add_element(pc) pool.add_element(pct) self.pmg = createPoolMeasurementGroup(pool, dummyMeasurementGroupConf01) self._pct = pct # keep a reference to use it in test_acquisition
def setUp(self): """Setup: - Use resources for Controller, CounterTimer and MeasurementGroup features. - Create Controller, CounterTimer and MeasurementGroup. """ pool = FakePool() pc = createPoolController(pool, dummyPoolCTCtrlConf01) pct = createPoolCounterTimer(pool, pc, dummyCounterTimerConf01) pc.add_element(pct) pool.add_element(pc) pool.add_element(pct) self.pmg = createPoolMeasurementGroup(pool, dummyMeasurementGroupConf01) self._pct = pct # keep a reference to use it in test_acquisition