Hi,
I'm trying to write voltages to the Fastino channels in parallel.
According to the manual i've tried use "with parallel" but then no channel is updating.
`from artiq.experiment import *
import numpy as np
class Test(EnvExperiment):
def build(self):
self.setattr_device("core")
self.setattr_device("fastino0")
@kernel
def run(self):
self.core.reset()
self.fastino0.init()
f = self.fastino0
omega=50e3
t=(1/omega)*1e6
n = 36
s = [f.voltage_to_mu(5*np.cos(2*np.pi*i/n))
for i in range(n)]
delay(100*ms)
T=t/n
cycle=1
self.core.break_realtime()
while cycle<4:
for i in range(100000):
for j in range(n):
with parallel:
f.set_dac_mu(0, s[j])
f.set_dac_mu(2, s[j])
delay(T*us)
cycle=cycle+1
delay(1000*ms)
`
Will appreciate some guidance, thanks.