Plots + field measurement
This commit is contained in:
parent
d9787c2e15
commit
18855417b9
17
Magnetic field measurements/Calibration_calculation.py
Normal file
17
Magnetic field measurements/Calibration_calculation.py
Normal file
@ -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)
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user