Commit 5f234c2b authored by Lucas Giardino's avatar Lucas Giardino

corrijo 1us extra y subo vcd

parent a5bd07d8
...@@ -15,7 +15,7 @@ class SingleLine(EnvExperiment): ...@@ -15,7 +15,7 @@ class SingleLine(EnvExperiment):
self.setattr_device("ccb") self.setattr_device("ccb")
self.pmt = self.get_device("ttl0") self.pmt = self.get_device("ttl0")
#self.pmt_state = self.get_device("ttl4") self.pmt_state = self.get_device("ttl4")
self.laserUV = UrukulCh(self, ch=2, freq=110.0, amp=0.3, name="UV") #corresponde a 0.7 Vpp self.laserUV = UrukulCh(self, ch=2, freq=110.0, amp=0.3, name="UV") #corresponde a 0.7 Vpp
self.laserIR = UrukulCh(self, ch=1, freq=208.0, amp=0.35, name="IR") #corresponde a 0.8 Vpp self.laserIR = UrukulCh(self, ch=1, freq=208.0, amp=0.35, name="IR") #corresponde a 0.8 Vpp
...@@ -88,11 +88,11 @@ class SingleLine(EnvExperiment): ...@@ -88,11 +88,11 @@ class SingleLine(EnvExperiment):
def init_kernel(self): def init_kernel(self):
self.core.reset() self.core.reset()
self.pmt.input() self.pmt.input()
#self.pmt_state.output() self.pmt_state.output()
self.laserIR.initialize_channel() self.laserIR.initialize_channel()
self.laserUV.initialize_channel() self.laserUV.initialize_channel()
# Quizas haya errores de tiempo. # Quizas haya errores de tiempo.
#self.pmt_state.off() self.pmt_state.off()
self.laserIR.set_channel() self.laserIR.set_channel()
self.laserUV.set_channel() self.laserUV.set_channel()
self.core.wait_until_mu(now_mu()) self.core.wait_until_mu(now_mu())
...@@ -120,12 +120,13 @@ class SingleLine(EnvExperiment): ...@@ -120,12 +120,13 @@ class SingleLine(EnvExperiment):
self.laserUV.on() self.laserUV.on()
# Prendo y apago la TTL para ver en el osc. # Prendo y apago la TTL para ver en el osc.
self.pmt_state.on()
here = self.pmt.gate_rising(self.t_readout) here = self.pmt.gate_rising(self.t_readout)
self.pmt_state.off()
#self.pmt_state.pulse(self.t_readout) #self.pmt_state.pulse(self.t_readout)
#cuentas = self.pmt.count(here) #cuentas = self.pmt.count(here)
delay(1*us) #delay(1*us)
self.enfriar_ion() self.enfriar_ion()
return here return here
...@@ -143,4 +144,4 @@ class SingleLine(EnvExperiment): ...@@ -143,4 +144,4 @@ class SingleLine(EnvExperiment):
self.core.break_realtime() self.core.break_realtime()
self.laserIR.off() self.laserIR.off()
self.laserUV.off() self.laserUV.off()
#self.pmt_state.off() self.pmt_state.off()
This diff is collapsed.
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