def setup_iq_channel_connections(self, exdir_db):
        # промежуточные частоты для гетеродинной схемы new:
        self.iq_devices = {
            'iq_ex1':
            awg_iq_multi.Awg_iq_multi(self.hdawg,
                                      self.hdawg,
                                      2,
                                      3,
                                      self.lo1,
                                      exdir_db=exdir_db),
            'iq_ro':
            awg_iq_multi.Awg_iq_multi(self.hdawg,
                                      self.hdawg,
                                      6,
                                      7,
                                      self.pna,
                                      exdir_db=exdir_db)
        }  # M3202A

        self.iq_devices['iq_ex1'].name = 'ex1'
        self.iq_devices['iq_ro'].name = 'ro'

        self.iq_devices[
            'iq_ex1'].calibration_switch_setter = lambda: self.set_switch_if_not_set(
                2, channel=1)
        self.iq_devices[
            'iq_ro'].calibration_switch_setter = lambda: self.set_switch_if_not_set(
                4, channel=1)

        self.iq_devices['iq_ex1'].sa = self.sa
        self.iq_devices['iq_ro'].sa = self.sa

        self.fast_controls = {
            'coil': awg_channel.awg_channel(self.hdawg, 0)
        }  # coil control
    def setup_iq_channel_connections(self, exdir_db):
        # промежуточные частоты для гетеродинной схемы new:
        self.iq_devices = {'iq_ex1': awg_iq_multi.Awg_iq_multi(self.hdawg, self.hdawg, 2, 3, self.lo1, exdir_db=exdir_db),
                           # M3202A
                           'iq_ex2': awg_iq_multi.Awg_iq_multi(self.hdawg, self.dummy_awg, 5, 0, self.lo1, exdir_db=exdir_db),
                           'iq_ex3': awg_iq_multi.Awg_iq_multi(self.hdawg, self.hdawg, 6, 7, self.lo1, exdir_db=exdir_db),
                           # M3202A
                           'iq_ro': awg_iq_multi.Awg_iq_multi(self.hdawg, self.hdawg, 0, 1, self.pna, exdir_db=exdir_db)}  # M3202A
        # iq_pa = awg_iq_multi.Awg_iq_multi(awg_tek, awg_tek, 3, 4, lo_ro) #M3202A
        self.iq_devices['iq_ex1'].name = 'ex1'
        self.iq_devices['iq_ex2'].name = 'ex2'
        self.iq_devices['iq_ex3'].name = 'ex3'
        # iq_pa.name='pa'
        self.iq_devices['iq_ro'].name = 'ro'

        self.iq_devices['iq_ex1'].calibration_switch_setter = lambda: self.set_switch_if_not_set(1, channel=1)
        self.iq_devices['iq_ex2'].calibration_switch_setter = lambda: self.set_switch_if_not_set(2, channel=1)
        self.iq_devices['iq_ex3'].calibration_switch_setter = lambda: self.set_switch_if_not_set(3, channel=1)
        self.iq_devices['iq_ro'].calibration_switch_setter = lambda: self.set_switch_if_not_set(4, channel=1)

        self.iq_devices['iq_ex1'].sa = self.sa
        self.iq_devices['iq_ex2'].sa = self.sa
        self.iq_devices['iq_ex3'].sa = self.sa
        self.iq_devices['iq_ro'].sa = self.sa

        self.fast_controls = {'coil': awg_channel.awg_channel(self.hdawg, 4)}  # coil control
Beispiel #3
0
    def setup_iq_channel_connections(self, exdir_db):
        # промежуточные частоты для гетеродинной схемы new:
        self.iq_devices = {'iq_ex1': awg_iq_multi.Awg_iq_multi(self.hdawg, self.hdawg, 2, 3, self.lo1, exdir_db=exdir_db),
                           # M3202A
                           # 'iq_ex2': hardware.iq_ex2 = awg_iq_multi.Awg_iq_multi(awg2, awg2, 2, 3, lo_ex), #M3202A
                           'iq_ex3': awg_iq_multi.Awg_iq_multi(self.hdawg, self.hdawg, 6, 7, self.lo1, exdir_db=exdir_db),
                           # M3202A
                           'iq_ro': awg_iq_multi.Awg_iq_multi(self.hdawg, self.hdawg, 0,            1, self.pna,
                                                              exdir_db=exdir_db)}  # M3202A
        # iq_pa = awg_iq_multi.Awg_iq_multi(awg_tek, awg_tek, 3, 4, lo_ro) #M3202A
        self.iq_devices['iq_ex1'].name = 'ex1'
        # iq_ex2.name='ex2'
        self.iq_devices['iq_ex3'].name = 'ex3'
        # iq_pa.name='pa'
        self.iq_devices['iq_ro'].name = 'ro'

        self.iq_devices['iq_ex1'].calibration_switch_setter = lambda: self.rf_switch.do_set_switch(1,
                                                                                                   channel=1) if not self.rf_switch.do_get_switch(
            channel=1) == 1 else None
        # iq_ex2.calibration_switch_setter = lambda: self.rf_switch.do_set_switch(2, channel=1) if not self.rf_switch.do_get_switch(channel=1)==2 else None
        self.iq_devices['iq_ex3'].calibration_switch_setter = lambda: self.rf_switch.do_set_switch(3,
                                                                                                   channel=1) if not self.rf_switch.do_get_switch(
            channel=1) == 3 else None
        self.iq_devices['iq_ro'].calibration_switch_setter = lambda: self.rf_switch.do_set_switch(4,
                                                                                                  channel=1) if not self.rf_switch.do_get_switch(
            channel=1) == 4 else None

        self.iq_devices['iq_ex1'].sa = self.sa
        self.iq_devices['iq_ex3'].sa = self.sa
        self.iq_devices['iq_ro'].sa = self.sa

        self.fast_controls = {'coil:': awg_channel.awg_channel(self.awg_tek, 4)}  # coil control