Пример #1
0
lockin = lockin.Lockin(LOCKIN_SERIAL_PORT)
tic = time.time()
print lockin.identification
print lockin.identification
lockin.sensitivity = 21  #21 --> 20 mV
# print time.time()-tic
# tic = time.time()
# print lockin.state(measurement_only=True)
# print time.time()-tic
source = mmwave_source.MMWaveSource()
source.set_attenuator_turns(6.0, 6.0)
source.multiplier_input = 'hittite'
source.waveguide_twist_angle = 0
source.ttl_modulation_source = 'roach'

hwp_motor = stepper.SimpleStepper(port='/dev/ttyACM2')

setup = hardware.Hardware(hwp_motor, source, lockin, hittite)

ri = hardware_tools.r2_with_mk1(
)  #heterodyne.RoachHeterodyne(adc_valon='/dev/ttyUSB0')
ri.iq_delay = -1
ri.set_modulation_output(7)
ri.set_fft_gain(6)

ri.set_lo(1210.0)

initial_f0s = np.load(
    '/data/readout/resonances/2017-05-09-bnl-hex-271-lo-1210-mhz-64.npy') / 1e6
#initial_f0s[35]-=0.02
#initial_f0s[37] += 0.02
Пример #2
0
    assert f_center.ptp() < f_baseband_maximum - f_baseband_minimum
    assert np.all(np.diff(f_center))
bands = band_dict.values()[5:6]
attenuations = [15, 15, 15, 10, 10, 10, 0, 0][5:6]  # For dict_180_mK bands
#attenuations = [15]

# Hardware
temperature = starcryo_temps.Temperature()
lock = lockin.SR830(serial_device=LOCKIN_SERIAL_PORT)
lock.identification  # This seems to be necessary to wake up the lockin
mmw = mmwave_source.MMWaveSource()
mmw.set_attenuator_ticks(0, 0)
mmw.multiplier_input = 'thermal'
mmw.ttl_modulation_source = 'roach_2'
mmw.waveguide_twist_angle = 0
hwp = stepper.SimpleStepper(port=CRYOGENIC_HWP_MOTOR_SERIAL_PORT)
time.sleep(wait_between_angles)
hwp.increment()
time.sleep(wait_between_angles)
hwp.decrement()
conditioner = analog.HeterodyneMarkII()
hw = hardware.Hardware(temperature, lock, mmw, hwp, conditioner)
ri = hardware_tools.r2h14_with_mk2(initialize=True, use_config=False)
ri.set_modulation_output('high')
ri.iq_delay = -1
ri.adc_valon.set_ref_select(0)  # internal
assert np.all(ri.adc_valon.get_phase_locks())

# Calculate sweep parameters, LO and baseband sweep frequencies
ri_state = ri.state
tone_sample_exponent = int(np.round(np.log2(ri_state.adc_sample_rate / df_baseband_target)))