Skip to content
Snippets Groups Projects
Commit 7a75ed09 authored by Stephan Philips's avatar Stephan Philips
Browse files

more tests for sweeps

parent 429b168b
No related branches found
No related tags found
No related merge requests found
......@@ -128,3 +128,6 @@ dmypy.json
# Pyre type checker
.pyre/
# neglect db files
.db
......@@ -160,10 +160,28 @@ if __name__ == '__main__':
def set_raw(self, val):
self._count = val
class dummy_multi_parameter_2dawg(qc.MultiParameter):
def __init__(self, name, label=None, unit=None):
super().__init__(name=name,
instrument=None,
names=("test12","test1234"),
shapes=( tuple() , tuple() ),
labels=( "digitzer_response", "D2"),
units=("unit1", "unit2"), )
self.setpoints = ( tuple(), tuple())
self.setpoint_shapes = ( tuple(), tuple())
self.setpoint_labels = ( ("I channel", ), ('Q channel', ))
self.setpoint_units = ( ("mV", ), ("mV", ))
self.setpoint_names = ( ("I_channel", ), ("Q_channel", ))
self.i = 2
def get_raw(self):
self.i +=1
return (self.i, self.i+100)
now = str(datetime.datetime.now())
tutorial_db_path = os.path.join(os.getcwd(), 'linking_datasets_tutorial.db')
initialise_or_create_database_at(tutorial_db_path)
path = os.path.join(os.getcwd(), 'test.db')
initialise_or_create_database_at(path)
load_or_create_experiment('tutorial ' + now, 'no sample')
my_param = MyCounter('test_instr')
from qcodes.instrument.specialized_parameters import ElapsedTimeParameter
......@@ -173,7 +191,13 @@ if __name__ == '__main__':
y = qc.Parameter(name='y', label='Voltage_y', unit='V',
set_cmd=None, get_cmd=None)
timer = ElapsedTimeParameter('time')
# do0D(my_param).run()
my_param_multi_test =dummy_multi_parameter_2dawg('param')
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, 100, 50, 0.1 , my_param, reset_param=True).run()
do2D(x, 0, 20, 20, 0.0, y, 0, 80, 30, 0.01, my_param).run()
do2D(x, 0, 20, 20, 0.0, timer, 0, 80, 30, 0.1, my_param).run()
\ No newline at end of file
# do2D(x, 0, 20, 20, 0.0, y, 0, 80, 30, 0.01, my_param).run()
# do2D(x, 0, 20, 20, 0.0, timer, 0, 80, 30, 0.1, my_param).run()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment