nothing = dummy('none', name='nothing', start=0, stop=1, pt=1, sstep=20e-3, stime=0.0) DC_check = True dim_1 = vBias dim_1.defval = 0.0 dim_2 = dummyD1D2 dim_2.defval = 4e9 dim_3 = vMag dim_3.defval = 0.0 dim_1.UD = False recordD12 = True # activates /deactivates all D1 D2 data storage D12 = CorrProc(D1, D2, pFlux, sgen, lags, BW, lsamples, corrAvg) D12.doHist2d = False D12.doBG = False D12.doRaw = False D12.doCorrel = True def sweep_dim_1(obj, value): ramp(obj, obj.sweep_par, value, obj.sstep, obj.stime) sleep(0.1) def sweep_dim_2(obj, value): ramp(obj, obj.sweep_par, value, obj.sstep, obj.stime)
sgen = None pFlux.set_power_mode(1) # Linear mode in mV # f1+f2 pFlux.set_freq(f1+f2) pFlux.sweep_par='power' # Power sweep dim_1 = pFlux dim_1.defval = 0.03 #pFlux dim_3 = vBias dim_3.defval = 0.0 dim_2 = vMag dim_2.defval = 0.0 dim_1.UD = False recordD12 = True # activates /deactivates all D1 D2 data storage D12 = CorrProc(D1, D2, pFlux, sgen, lags, BW, lsamples, corrAvg) D12.doHist2d = False # Plot 2d Histograms ?? D12._takeBG = True def sweep_dim_1(obj, value): ramp(obj, obj.sweep_par, value, obj.sstep, obj.stime) def sweep_dim_2(obj, value): ramp(obj, obj.sweep_par, value, obj.sstep, obj.stime) def sweep_dim_3(obj, value): ramp(obj, obj.sweep_par, value, obj.sstep, obj.stime)
# D12spacing.D2 = D2 # D12spacing.sweep_par = 'f12' # D12spacing.cfreq = f1+f2 # sweep_dim_1(vBias, 0.002) dim_1 = pFlux dim_1.UD = False dim_1.defval = 0.001 dim_2 = vMag dim_2.defval = -1.1 dim_3 = nothing dim_3.defval = 0.0 sgen = None recordD12 = True # all D1 D2 data storage D12 = CorrProc(D1, D2, pFlux, sgen, lags, BW, lsamples, corrAvg) D12.doHist2d = False # Record Histograms (Larger -> Slower) D12.doCorrel = True D12.doRaw = True D12.doBG = True # This describes how data is saved DS = DataStoreSP(folder, filen_0, dim_1, dim_2, dim_3, 'Vx1k') DS.ask_overwrite() copy_file(thisfile, filen_0, folder) # CorrProc controls, coordinates D1 and D2 together (also does thes calcs.) if recordD12: D12.create_datastore_objs(folder, filen_0, dim_1, dim_2, dim_3)