Commit b248c821 authored by Nicolas Nunez Barreto's avatar Nicolas Nunez Barreto

pruebas para comp microm

parent 7c9853d0
...@@ -25,7 +25,7 @@ class MicromotionCompensation(EnvExperiment): ...@@ -25,7 +25,7 @@ class MicromotionCompensation(EnvExperiment):
# self.setattr_argument("bin", NumberValue(50e-9, unit='us'), "Binning params") # self.setattr_argument("bin", NumberValue(50e-9, unit='us'), "Binning params")
self.setattr_argument("no_measures", self.setattr_argument("no_measures",
NumberValue(1000, min=1, ndecimals=0, step=1), NumberValue(1, min=1, ndecimals=0, step=1),
"Experiment params") "Experiment params")
...@@ -38,7 +38,7 @@ class MicromotionCompensation(EnvExperiment): ...@@ -38,7 +38,7 @@ class MicromotionCompensation(EnvExperiment):
"Experiment params") "Experiment params")
self.setattr_argument(f"t_readout", self.setattr_argument(f"t_readout",
NumberValue(10*ms, unit='ms', scale=ms, min=0.001*ms), NumberValue(10*us, unit='us', scale=us, min=0.0000001*us),
"Experiment params") "Experiment params")
self.setattr_argument(f"t_wait", self.setattr_argument(f"t_wait",
...@@ -394,9 +394,8 @@ class MicromotionCompensation(EnvExperiment): ...@@ -394,9 +394,8 @@ class MicromotionCompensation(EnvExperiment):
# Prendo y apago la TTL para ver en el osc. # Prendo y apago la TTL para ver en el osc.
#self.pmt_state.on() #self.pmt_state.on()
with parallel: #self.pmt.gate_rising(self.t_readout)
#self.pmt.gate_rising(self.t_readout) self.pmt.gate_rising(self.t_readout)
self.rfsignal.gate_rising(self.t_readout)
#with parallel: #with parallel:
#self.pmt_state.off() #self.pmt_state.off()
self.enfriar_ion() self.enfriar_ion()
...@@ -415,7 +414,7 @@ class MicromotionCompensation(EnvExperiment): ...@@ -415,7 +414,7 @@ class MicromotionCompensation(EnvExperiment):
#while count > 0: #while count > 0:
# self.append_to_dataset("counts", self.core.mu_to_seconds(count - t0) ) # self.append_to_dataset("counts", self.core.mu_to_seconds(count - t0) )
# count = self.pmt.timestamp_mu(t_end) # count = self.pmt.timestamp_mu(t_end)
countrf = self.rfsignal.timestamp_mu(t_end) countrf = self.pmt.timestamp_mu(t_end)
t0 = t_end - self.core.seconds_to_mu(self.t_readout) t0 = t_end - self.core.seconds_to_mu(self.t_readout)
while countrf > 0: while countrf > 0:
self.append_to_dataset("countsrf", self.core.mu_to_seconds(countrf - t0) ) self.append_to_dataset("countsrf", self.core.mu_to_seconds(countrf - t0) )
......
...@@ -210,11 +210,7 @@ class CRB(EnvExperiment): ...@@ -210,11 +210,7 @@ class CRB(EnvExperiment):
self.enfriar_ion() self.enfriar_ion()
for runN in range(self.no_measures): for runN in range(self.no_measures):
# Aprovecho el tiempo que necesito para extraer datos
# par enfriar al ion con los dos laseres prendidos
if runN % 50 == 0: if runN % 50 == 0:
# Aprovecho el tiempo que necesito para extraer datos
# par enfriar al ion con los dos laseres prendidos
at_mu(self.core.get_rtio_counter_mu() + self.core.seconds_to_mu(self.t_cool) ) at_mu(self.core.get_rtio_counter_mu() + self.core.seconds_to_mu(self.t_cool) )
else: else:
at_mu(self.core.get_rtio_counter_mu() + self.core.seconds_to_mu(100*us) ) at_mu(self.core.get_rtio_counter_mu() + self.core.seconds_to_mu(100*us) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment