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

logger.setLevel(logging.DEBUG)


# lockin = lockin.Lockin(LOCKIN_SERIAL_PORT)
# tic = time.time()
# print lockin.identification
# print time.time()-tic
# tic = time.time()
# print lockin.state(measurement_only=True)
# print time.time()-tic


ri = hardware_tools.r2_with_mk1()
ri.iq_delay=-1

ri.set_dac_atten(0)
ri.set_fft_gain(6)

nsamp = 2**15
step = 1
nstep = 32
#f0binned = np.round(f0s * nsamp / 512.0) * 512.0 / nsamp
offset_bins = np.arange(-(nstep), (nstep)) * step

offsets = offset_bins * 512.0 / nsamp

ri.set_modulation_output(7)
Exemplo n.º 2
0
source.waveguide_twist_angle = 0
source.ttl_modulation_source = 'roach'

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

logger.setLevel(logging.DEBUG)

# lockin = lockin.Lockin(LOCKIN_SERIAL_PORT)
# tic = time.time()
# print lockin.identification
# print time.time()-tic
# tic = time.time()
# print lockin.state(measurement_only=True)
# print time.time()-tic

ri = hardware_tools.r2_with_mk1()
ri.iq_delay = -1

ri.set_dac_atten(10)
ri.set_fft_gain(6)

nsamp = 2**15
step = 1
nstep = 32
#f0binned = np.round(f0s * nsamp / 512.0) * 512.0 / nsamp
offset_bins = np.arange(-(nstep), (nstep)) * step

offsets = offset_bins * 512.0 / nsamp

ri.set_modulation_output('high')