Пример #1
0
    def consecutive_acquisitions(self, pool, config, synchronization):
        # creating mg user configuration and obtaining channel ids
        mg_conf, channel_ids, channel_names = createMGUserConfiguration(
            pool, config)

        # setting mg configuration - this cleans the action cache!
        self.pmg.set_configuration_from_user(mg_conf)
        repetitions = 0
        for group in synchronization:
            repetitions += group[SynchParam.Repeats]
        self.prepare_attribute_listener()
        self.acquire()
        self.acq_asserts(channel_names, repetitions)
Пример #2
0
    def consecutive_acquisitions(self, pool, config, synchronization):
        # creating mg user configuration and obtaining channel ids
        mg_conf, channel_ids, channel_names = createMGUserConfiguration(
            pool, config)

        # setting mg configuration - this cleans the action cache!
        self.pmg.set_configuration_from_user(mg_conf, to_fqdn=False)
        repetitions = 0
        for group in synchronization:
            repetitions += group[SynchParam.Repeats]
        self.prepare_attribute_listener()
        self.acquire()
        self.acq_asserts(channel_names, repetitions)
Пример #3
0
 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
Пример #4
0
 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