Hello, I'm just starting out with our Artiq system and I'm confused why neither of these sets of code don't run - the scope shows no output and just fails silently. Any advice would be helpful in trying to understand the workings of the system.
I'm using the device_db supplied to us and TTL4+ are set to outputs on the dip switches with the LED showing this.
Many thanks
from artiq.experiment import *
class TTLTest(EnvExperiment):
"""TTL Test1"""
def build(self):
self.setattr_device("core")
self.setattr_device("ttl4")
@kernel
def run(self):
self.core.reset()
self.ttl4.reset()
self.ttl4.output()
self.core.break_realtime()
while True:
self.ttl4.on()
#self.ttl4.pulse(5*ms)
delay(5*ms)
self.ttl4.off()
delay(5*ms)
from artiq.experiment import *
class TTLTest(EnvExperiment):
"""TTL Test"""
def build(self):
self.setattr_device("core")
self.ttl = self.get_device("ttl4")
@kernel
def run(self):
self.core.reset()
while True:
self.ttl.on()
#self.ttl1.pulse(5*ms)
delay(10*ms)
self.ttl.off()
delay(10*ms)