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

meds

parent 3e350a31
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Apr 24 14:24:05 2024
@author: liaf-ankylosaurus-admin
"""
import numpy as np
from artiq.experiment import *
#from pyliaf.GenFun.generador import nombredelaclase
class InOut(EnvExperiment):
"""
Control de shutter prueba
"""
def build(self):
self.setattr_device("core")
self.setattr_device("ccb")
self.ttl6 = self.get_device("ttl6")
self.setattr_argument("N_blinks", NumberValue(1, min=1, max=200, ndecimals=0, step=1), "Experiment params")
@kernel
def run(self):
#Preparamos las variables
#Se prenden los "canales" a usar
self.core.reset()
self.ttl6.output()
delay(20*ms) # time for the artiq init.
for i in range(self.N_blinks):
self.ttl6.on()
delay(1000*ms)
self.ttl6.off()
delay(1000*ms)
......@@ -6,7 +6,7 @@ Created on Mon Apr 15 13:47:37 2024
import numpy as np
from artiq.experiment import *
#from pyLIAF.GenFunc.generador import Generador
class InOut(EnvExperiment):
"""
......@@ -80,6 +80,13 @@ class InOut(EnvExperiment):
if save:
np.savetxt('escribo_ticks.dat', self.ticks[:-1])
@rpc
def TurnOnRF(self):
blablabla
def TurnOffRF(self):
boalbas
@kernel
def run(self):
#Preparamos las variables y los graficos
......@@ -104,17 +111,11 @@ class InOut(EnvExperiment):
# tiempo= self.core.mu_to_seconds(tiempo)
# self.mutate_dataset('time',i,tiempo)
print(cuentas)
#print(tiempo)
self.core.break_realtime()
#print(self.counts)
start_time = now_mu() # Record the start timeself.core.break_realtime()
self.core.break_realtime()
#self.core.wait_until_mu(now_mu())
......
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