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) # This describes how data is saved DS = DataStoreSP(folder, filen_0, dim_1, dim_2, dim_3, 'Vx1k') # 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) DS.ask_overwrite() copy_file(thisfile, filen_0, folder) # describe how data is to be stored def record_data(kk, jj, ii, back): '''This function is called with each change in ii,jj,kk content: what to measure each time ''' if recordD12: D12.init_trigger() # Trigger and check D1 & D2 #print 'send trigger from loop' vdata = vm.get_val() # aquire voltage data point if back is True: return DS.record_data2(vdata, kk, jj, ii)
def sweep_dim_2(obj,index): value = obj.lin[int(index)] ramp(obj, obj.sweep_par, value, obj.sstep, obj.stime) # obj.sweep_v(value, 5) # sleep(5.1) # PSG.set_power(value) def sweep_dim_3(obj,index): # value = obj.lin[int(index)] pass DSP = DataStoreSP(folder, filen_0, dim_1, dim_2, dim_3, label='V', cname='Voltage x1k') DS11 = DataStore11Vec(folder, filen_0, dim_1, dim_2, D1, 'CovMat') DSP.ask_overwrite() DSP_PD1 = DataStoreSP(folder, filen_0, dim_1, dim_2, dim_3, label='D1Pow', cname='Watts') DSP_LD1 = DataStoreSP(folder, filen_0, dim_1, dim_2, dim_3, label='D1LevCorr', cname='LvLCorr') DS2vD1 = DataStore2Vec(folder, filen_0, dim_1, dim_2, dim_3, 'D1vAvg') DS2mD1 = DataStore2Vec(folder, filen_0, dim_1, dim_2, dim_3, 'D1mAvg') DSP_PD2 = DataStoreSP(folder, filen_0, dim_1, dim_2, dim_3, label='D2Pow', cname='Watts') DSP_LD2 = DataStoreSP(folder, filen_0, dim_1, dim_2, dim_3, label='D2LevCorr', cname='LvLCorr') DS2vD2 = DataStore2Vec(folder, filen_0, dim_1, dim_2, dim_3, 'D2vAvg') DS2mD2 = DataStore2Vec(folder, filen_0, dim_1, dim_2, dim_3, 'D2mAvg') copy_file(thisfile, filen_0, folder) #backup this script print 'Executing sweep' # print 'Est. req time (min):'+str(corrAvg*lsamples/BW*dim_3.pt*dim_2.pt*dim_1.pt*0.032/60) # this involves only DC measurements