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):
self.setattr_device("ccb")
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.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):
def init_kernel(self):
self.core.reset()
self.pmt.input()
#self.pmt_state.output()
self.pmt_state.output()
self.laserIR.initialize_channel()
self.laserUV.initialize_channel()
# Quizas haya errores de tiempo.
#self.pmt_state.off()
self.pmt_state.off()
self.laserIR.set_channel()
self.laserUV.set_channel()
self.core.wait_until_mu(now_mu())
......@@ -120,12 +120,13 @@ class SingleLine(EnvExperiment):
self.laserUV.on()
# Prendo y apago la TTL para ver en el osc.
self.pmt_state.on()
here = self.pmt.gate_rising(self.t_readout)
self.pmt_state.off()
#self.pmt_state.pulse(self.t_readout)
#cuentas = self.pmt.count(here)
delay(1*us)
#delay(1*us)
self.enfriar_ion()
return here
......@@ -143,4 +144,4 @@ class SingleLine(EnvExperiment):
self.core.break_realtime()
self.laserIR.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