def do2D(param_1, start_1, stop_1, n_points_1, delay_1, param_2, start_2, stop_2, n_points_2, delay_2, *m_instr, reset_param=False): ''' do a 2D scan Args: param_1 (qc.Parameter) : parameter to be swept start_1 (float) : start value of the sweep stop_1 (float) : stop value of the sweep delay_1 (float) : time to wait after the set of the parameter param_2 (qc.Parameter) : parameter to be swept start_2 (float) : start value of the sweep stop_2 (float) : stop value of the sweep delay_2 (float) : time to wait after the set of the parameter m_instr (*list) : list of parameters to measure reset_param (bool) : reset the setpoint parametes to their original value after the meaurement ''' m_param_1 = sweep_info(param_1, start_1, stop_1, n_points_1, delay_1) m_param_2 = sweep_info(param_2, start_2, stop_2, n_points_2, delay_2) return scan_generic(m_param_2, m_param_1, *m_instr, reset_param=reset_param)
def do1D(param, start, stop, n_points, delay, *m_instr, reset_param=False): ''' do a 1D scan Args: param (qc.Parameter) : parameter to be swept start (float) : start value of the sweep stop (float) : stop value of the sweep delay (float) : time to wait after the set of the parameter m_instr (*list) : list of parameters to measure reset_param (bool) : reset the setpoint parametes to their original value after the meaurement ''' m_param = sweep_info(param, start, stop, n_points, delay) return scan_generic(m_param, *m_instr, reset_param=reset_param)
from qcodes.instrument.specialized_parameters import ElapsedTimeParameter x = qc.Parameter(name='x', label='Voltage_x', unit='V', set_cmd=None, get_cmd=None) y = qc.Parameter(name='y', label='Voltage_y', unit='V', set_cmd=None, get_cmd=None) timer = ElapsedTimeParameter('time') my_param_multi_test = dummy_multi_parameter_2dawg('param') s = sweep_info(x, 10, 100, 10, 0) s.param = 5 # from core_tools.GUI.keysight_videomaps.data_getter.scan_generator_Virtual import construct_1D_scan_fast,construct_2D_scan_fast, fake_digitizer # param_1D = construct_1D_scan_fast("P2", 10,10,5000, True, None, fake_digitizer('test')) # param_2D = construct_2D_scan_fast('P2', 10, 10, 'P5', 10, 10,50000, True, None, fake_digitizer('test')) # data_1D = param_1D.get() # do0D(param_2D).run() # do1D(x, 0,5,100, 0.01, param_1D).run() from core_tools.GUI.keysight_videomaps.data_getter.scan_generator_Virtual import construct_1D_scan_fast, construct_2D_scan_fast, fake_digitizer param_1D = construct_1D_scan_fast("P2", 10, 10, 5000, True, None, fake_digitizer('test'), 2, 1e9) param_2D = construct_2D_scan_fast('P2', 10, 10, 'P5', 10, 10, 50000, True, None, fake_digitizer('test'), 2, 1e9) # data_1D = param_1D.get() # do0D(param_2D).run() # ds = do0D(param_2D).run()