aboutsummaryrefslogtreecommitdiff
path: root/examples/eit_with_vcsel.py
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2022-06-02 10:58:19 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2022-06-02 10:58:19 -0400
commita59b1942a82a1da63e1e72c248996f571106a29a (patch)
tree30d28d7db5a7ac741da0d075e5823adf6b15e3af /examples/eit_with_vcsel.py
parent78f979e9985b387ae530fe8053ab2440614887cb (diff)
downloadqolab-a59b1942a82a1da63e1e72c248996f571106a29a.tar.gz
qolab-a59b1942a82a1da63e1e72c248996f571106a29a.zip
B field sweep improved
Diffstat (limited to 'examples/eit_with_vcsel.py')
-rw-r--r--examples/eit_with_vcsel.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/examples/eit_with_vcsel.py b/examples/eit_with_vcsel.py
index 25e87fe..77104f2 100644
--- a/examples/eit_with_vcsel.py
+++ b/examples/eit_with_vcsel.py
@@ -7,6 +7,7 @@ import numpy as np
import platform
import time
from tqdm import tqdm as pbar
+import matplotlib.pyplot as plt
from qolab.hardware import BasicInstrument
@@ -211,17 +212,21 @@ def calibrateCoilsCurrent():
getCurrentCalibrationData(ch=3)
def rotateBandGetEITtrace():
- Np=100
- Nsweeps=1
+ Np=1000
+ Nsweeps=5
Bmag=50e-6 # earth magnetic field in Tesla (0.5 G)
- phiStep = 5
- thetaStep = 5
+ phiStep = 10
+ thetaStep = 10
phiSet = range(0,90+phiStep, phiStep)
thetaSet = range(0,90+thetaStep, thetaStep)
for phi in phiSet:
for theta in thetaSet:
Bfield.setBinDegrees(Bmag=Bmag, theta=theta, phi=phi)
trEIT = eitSweep(central_frequency, frequency_span, Np, Nsweeps=Nsweeps)
+ plt.clf()
+ trEIT.plot()
+ plt.draw()
+ plt.pause(0.1)
fn = apparatus.getNextDataFile()
logger.info(f'Data ready for {Bmag=} in {theta=} {phi=}')
logger.info(f'Data saved to {fn=}')