Ejemplo n.º 1
0
cxn = labrad.connect()
dv = cxn.data_vault
ds = cxn.resonatordac
# rs = cxn.rohdeschwarz_server
# rs.select_device('resonator-pc GPIB Bus - USB0::0x0AAD::0x0054::102549')

amplMin = -0.4
amplMax = -0.3
amplStep = 0.01
recordTime = 0.5  # seconds
average = 6
freqSpan = 100.0  # Hz
freqOffset = -920.0  # Hz, the offset between the counter clock and the rf synthesizer clock
# setting up FFT
fft = measureFFT(cxn, recordTime, average, freqSpan, freqOffset, savePlot=False)
# saving

dv.cd(["", date, "QuickMeasurements", "FFT"], True)
name = dv.new("FFT", [("Amplitude", "V/m")], [("FFTPeak", "Arb", "Arb")])
dv.add_parameter("plotLive", True)
print "Saving {}".format(name)

amplitudes = np.arange(amplMin, amplMax + amplStep, amplStep)
Ex = 0.19
Ez = 0
U1 = -0.22
U2 = 4.5
U3 = 0.22
U4 = 0
U5 = 0
Ejemplo n.º 2
0
cxn = labrad.connect()
dv = cxn.data_vault
rs = cxn.rohdeschwarz_server
rs.select_device('lattice-pc GPIB Bus - USB0::0x0AAD::0x0054::102549')

phaseMin = 0.0
phaseMax = 25.0
phaseStep = 2.5
recordTime = 0.5  #seconds
average = 4
freqSpan = 300.0  #Hz
freqOffset = -310.0  #Hz, the offset between the counter clock and the rf synthesizer clock
#setting up FFT
fft = measureFFT(cxn,
                 recordTime,
                 average,
                 freqSpan,
                 freqOffset,
                 savePlot=False)
#saving
dv.cd(['', 'QuickMeasurements', 'FFT'], True)
name = dv.new('FFT', [('Phase', 'deg')], [('FFTPeak', 'Arb', 'Arb')])
dv.add_parameter('plotLive', True)
print 'Saving {}'.format(name)

phases = np.arange(phaseMin, phaseMax + phaseStep, phaseStep)

for phase in phases:
    rs.set_phase(phase)
    micromotion = fft.getPeakArea(ptsAround=3)
    dv.add(phase, micromotion)