diff --git a/hp4155/ADU for double gate devices-test/double_gate_ADU.py b/hp4155/ADU for double gate devices-test/double_gate_ADU.py index 4b66de872acefdc44a93bbdbfacf359d7c66e092..8f445058ce95a2149a7bd269503f6a47905e9663 100644 --- a/hp4155/ADU for double gate devices-test/double_gate_ADU.py +++ b/hp4155/ADU for double gate devices-test/double_gate_ADU.py @@ -511,6 +511,18 @@ def on_export_ini_clicked(b): config.add_section('Plot_gatediode') for parameter,widget in plot_gatediode.items(): config.set('Plot_gatediode',parameter,str(widget.value)) + + # add the smu configuration + config.add_section('SMU_configuration') + for parameter,widget in smu_map.items(): + config.set('SMU_configuration',parameter,str(widget.value)) + + # Add the sweeping gates + config.add_section('Sweeping_gates') + config.set('Sweeping_gates','Transfer',str(transfer_gates.value)) + config.set('Sweeping_gates','Output',str(output_gates.value)) + config.set('Sweeping_gates','Gatediode',str(terminal.value)) + config.write(configfile) except Exception as e: @@ -531,7 +543,7 @@ def on_import_ini_clicked(b): enable_widgets(all_widgets) return - try: + try: #read the values from each section config.read(file) @@ -566,6 +578,15 @@ def on_import_ini_clicked(b): for parameter,widget in plot_gatediode.items(): widget.value = config.get('Plot_gatediode',parameter) + # SMU map + for parameter,widget in smu_map.items(): + widget.value = int(config.get('SMU_configuration',parameter)) + + # sweeping gates + transfer_gates.value = config.get('Sweeping_gates','Transfer') + output_gates.value = config.get('Sweeping_gates','Output') + terminal.value = config.get('Sweeping_gates','Gatediode') + information_box("all parameters loaded succesfully") except Exception as error: if type(error).__name__ =='NoSectionError': diff --git a/hp4155/ADU for double gate devices-test/double_gate_ADU_interface.ipynb b/hp4155/ADU for double gate devices-test/double_gate_ADU_interface.ipynb index cecc7c917d748fd81e29c5cc2b8906c2a2e6cb33..e3ccb249d729249d744e33866a5226598c552efa 100644 --- a/hp4155/ADU for double gate devices-test/double_gate_ADU_interface.ipynb +++ b/hp4155/ADU for double gate devices-test/double_gate_ADU_interface.ipynb @@ -9,7 +9,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "e555573e22c546a6a305096c9d476115", + "model_id": "8c321db4c5e244cc9c3617416a9d77fe", "version_major": 2, "version_minor": 0 }, @@ -23,7 +23,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "d1459686805d4489854221f8fd6a9718", + "model_id": "6ee187f122a445de88a4261b5d316563", "version_major": 2, "version_minor": 0 }, @@ -37,7 +37,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "4c7ddbf240104c3bab678fccc26db0df", + "model_id": "405c3af151294accb2cebd393d74c484", "version_major": 2, "version_minor": 0 }, @@ -51,7 +51,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "57fedee09ea547dcb6ebaae046057df3", + "model_id": "0128321641484d0499c75fa66643df96", "version_major": 2, "version_minor": 0 }, @@ -65,7 +65,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "0e81c985ca234bc3bde9f042ae86921a", + "model_id": "a9af785a10d44cbb95cdcc833ab60df4", "version_major": 2, "version_minor": 0 }, @@ -84,7 +84,7 @@ { "cell_type": "code", "execution_count": null, - "id": "40d5f341-bc61-4698-8bdd-f99e94f4e325", + "id": "96ff60d6-a9c5-4f9c-b28e-ea6003e6e8a8", "metadata": {}, "outputs": [], "source": [] diff --git a/hp4155/ADU for double gate devices-test/lib/measurements.py b/hp4155/ADU for double gate devices-test/lib/measurements.py index 8550c619fc2402889a4e26229e7e28ecf249587a..74e7d38793ce00553109ea434f327ee5402957e0 100644 --- a/hp4155/ADU for double gate devices-test/lib/measurements.py +++ b/hp4155/ADU for double gate devices-test/lib/measurements.py @@ -736,7 +736,7 @@ def Output_VBG(device,params): f.write(f"Integration Time:{params['INTEGRATION']}"+"\n") f.write("\nResults\n") - + df.to_csv(file,sep=" ",mode='a') plot_values = values_to_plot(params,device)