exopy_hqc_legacy/pulses/contexts/awg_context.py
def _transfer_sequences(self, driver, sequences, infos):
        """Transfer a previously compiled sequence.

        """
        for ch_id in driver.defined_channels:
            if ch_id in sequences:
                driver.to_send(infos['sequence_ch%s' % ch_id],
                               sequences[ch_id])

        if self.select_after_transfer:
            driver.sampling_frequency = self.sampling_frequency
            for ch_id in driver.defined_channels:
                ch = driver.get_channel(ch_id)
                if ch_id in sequences:
                    ch.select_sequence(infos['sequence_ch%s' % ch_id])
                elif self.clear_unused_channels:
                    ch.clear_sequence()

        if self.run_after_transfer:
            for ch_id in sequences:
                ch = driver.get_channel(ch_id)
                ch.output_state = 'ON'
            driver.running = True

        return True, infos, {}
Transfer a previously compiled sequence.

        
Transfer a previously compiled sequence.
Transfer a previously compiled sequence .
def _transfer_sequences(self, driver, sequences, infos):
        for ch_id in driver.defined_channels:
            if ch_id in sequences:
                driver.to_send(infos['sequence_ch%s' % ch_id],
                               sequences[ch_id])
        if self.select_after_transfer:
            driver.sampling_frequency = self.sampling_frequency
            for ch_id in driver.defined_channels:
                ch = driver.get_channel(ch_id)
                if ch_id in sequences:
                    ch.select_sequence(infos['sequence_ch%s' % ch_id])
                elif self.clear_unused_channels:
                    ch.clear_sequence()
        if self.run_after_transfer:
            for ch_id in sequences:
                ch = driver.get_channel(ch_id)
                ch.output_state = 'ON'
            driver.running = True
        return True, infos, {}
def _transfer_sequences ( self , driver , sequences , infos ) : for ch_id in driver . defined_channels : if ch_id in sequences : driver . to_send ( infos [ 'sequence_ch%s' % ch_id ] , sequences [ ch_id ] ) if self . select_after_transfer : driver . sampling_frequency = self . sampling_frequency for ch_id in driver . defined_channels : ch = driver . get_channel ( ch_id ) if ch_id in sequences : ch . select_sequence ( infos [ 'sequence_ch%s' % ch_id ] ) elif self . clear_unused_channels : ch . clear_sequence ( ) if self . run_after_transfer : for ch_id in sequences : ch = driver . get_channel ( ch_id ) ch . output_state = 'ON' driver . running = True return True , infos , { }
Transfer a previously compiled sequence.
Transfer a previously compiled sequence .
"""Transfer a previously compiled sequence.

        """
self
driver
sequences
infos