#elMeasure #eefje = qt.instruments.create('Eefje','IVVI',address='COM1') #elKeef = qt.instruments.create('ElKeefLy','Keithley_2000',address='GPIB::17') dsgen1 = qt.instruments.create('dsgen1', 'dummy_signal_generator') dsgen2 = qt.instruments.create('dsgen2', 'dummy_signal_generator') dsgen3 = qt.instruments.create('dsgen3', 'dummy_signal_generator') import lib.parspace as ps reload(ps) from math import sin ax1 = ps.param() ax1.begin = 0. ax1.end = 10. ax1.stepsize = 1. ax1.instrument = 'dsgen1' ax1.label = 'x' ax1.module_options = { 'dac': 5, 'name': 's1f', 'rate_stepsize': .5, 'rate_delay': 10., 'var': 'amplitude', 'setalways': 1, # 'postcall': some_function, 'gain': 1. } import copy
#eefje = qt.instruments.create('Eefje','IVVI',address='COM1') #elKeef = qt.instruments.create('ElKeefLy','Keithley_2000',address='GPIB::17') import qt dsgen1 = qt.instruments.create('dsgen1', 'dummy_signal_generator') dsgen2 = qt.instruments.create('dsgen2', 'dummy_signal_generator') dsgen3 = qt.instruments.create('dsgen3', 'dummy_signal_generator') import lib.parspace as ps reload(ps) from math import sin ax1 = ps.param() ax1.begin = 2. ax1.end = 20. ax1.stepsize = 1. ax1.rate_stepsize = 1. ax1.rate_delay = 40. ax1.instrument = 'dsgen1' ax1.label = 'x' ax1.module_options = {'dac':5, 'name':'s1f', 'rate_stepsize':5., 'rate_delay': 10., 'var':'amplitude', 'gain':1. } ax2 = ps.param()
#elMeasure #eefje = qt.instruments.create('Eefje','IVVI',address='COM1') #elKeef = qt.instruments.create('ElKeefLy','Keithley_2000',address='GPIB::17') dsgen1 = qt.instruments.create('dsgen1', 'dummy_signal_generator') dsgen2 = qt.instruments.create('dsgen2', 'dummy_signal_generator') dsgen3 = qt.instruments.create('dsgen3', 'dummy_signal_generator') import lib.parspace as ps reload(ps) from math import sin ax1 = ps.param() ax1.begin = 1. ax1.end = 10. ax1.stepsize = 1. ax1.rate_stepsize = 1. ax1.rate_delay = 40. ax1.instrument = 'dsgen1' ax1.label = 'x' ax1.module_options = {'dac':5, 'name':'s1f', 'rate_stepsize':.5, 'rate_delay': 10., 'var':'amplitude', 'gain':1. } ax2 = ps.param() ax2.begin = 5. ax2.end = 10. ax2.stepsize = .1
import lib.parspace as ps reload(ps) ax1 = ps.param() ax1.begin = 1. ax1.end = 3. ax1.stepsize = 1. xs = [ax1, ax1, ax1] for dp in ps.sweep_gen(xs, **{'sweepback': 'on'}): print dp def bin2str(b): return '{:#008b}'.format(b)
} b = { 'instrument': dsgen2, 'parameter': 'amplitude', 'function': f2, 'gain': 5. } combined_arb.add_variable_combined('phase', [a, b]) qt.msleep(1.5) #allow for instruments to be registered #safety maximum sweeps when the instruments are ill-defined dsgen1.set_parameter_rate('amplitude', 20, 10) dsgen2.set_parameter_rate('amplitude', 20, 10) ds1 = ps.param() ds1.label = 'amplitude' ds1.instrument = 'dsgen1' ds1.module_options = { 'rate_stepsize': .02, 'rate_delay': 100., 'var': 'amplitude', 'gain': 5., 'function': f1 } ds2 = ps.param() ds2.label = 'amplitude' ds2.instrument = 'dsgen2' ds2.module_options = { 'rate_stepsize': .02,