From 18855417b995f5204eab8a038df514497f59c2ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joschka=20Sch=C3=B6ner?= Date: Mon, 5 Sep 2022 17:48:47 +0200 Subject: [PATCH] Plots + field measurement --- .../Calibration_calculation.py | 17 +++++++++++++++++ Magnetic field measurements/measurement test.py | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 Magnetic field measurements/Calibration_calculation.py diff --git a/Magnetic field measurements/Calibration_calculation.py b/Magnetic field measurements/Calibration_calculation.py new file mode 100644 index 0000000..77b9c2a --- /dev/null +++ b/Magnetic field measurements/Calibration_calculation.py @@ -0,0 +1,17 @@ +import matplotlib.pyplot as plt +import numpy as np +import matplotlib +#matplotlib.use('Qt5Agg') +from src import coil_class as BC + + +HH_Coil = BC.BCoil(HH = 1, distance = 54, radius = 48, layers = 8, windings = 8, wire_height = 0.5, + wire_width = 0.5, insulation_thickness = (0.546-0.5)/2, is_round = True, + winding_scheme= 2) + +HH_Coil.set_R_inner(45.6) +HH_Coil.set_d_min(47.4) +HH_Coil.print_info() + + +HH_Coil.max_field_one_coil(5) \ No newline at end of file diff --git a/Magnetic field measurements/measurement test.py b/Magnetic field measurements/measurement test.py index 87bf5a4..7f4e841 100644 --- a/Magnetic field measurements/measurement test.py +++ b/Magnetic field measurements/measurement test.py @@ -13,7 +13,7 @@ fig, axs=plt.subplots(1,3) #plug in number of measurement points (here 35) #save all data in a txt sheet -for k in range(0,35): +for k in range(0,10): a=ser.readline() data=str(a,'utf-8')