From 7f6b49e81abcbaad2e663e549fbf8e0da68c3749 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Thu, 2 Jun 2022 15:06:01 -0400 Subject: streamlined data aquisition --- examples/eit_with_vcsel.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/eit_with_vcsel.py b/examples/eit_with_vcsel.py index de1e9f1..03dbf34 100644 --- a/examples/eit_with_vcsel.py +++ b/examples/eit_with_vcsel.py @@ -238,7 +238,7 @@ def setBandTakeTrace(Bmag=50e-6, theta=0, phi=0, central_frequency=6.83468e9, fr def rotateBandGetEITtrace(): - Np=1000 + Np=500 Nsweeps=5 Bmag=50e-6 # earth magnetic field in Tesla (0.5 G) phiStep = 10 @@ -247,8 +247,7 @@ def rotateBandGetEITtrace(): 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) + trEIT = setBandTakeTrace(Bmag=Bmag, theta=theta, phi=phi, central_frequency=central_frequency, frequency_span=frequency_span, Np=Np, Nsweeps=Nsweeps) plt.clf() trEIT.plot() plt.draw() -- cgit v1.2.3