Hi everyone,I have been trying to use a grabber to obtain counts from images of an EMCCD. However, the program gets stuck at the step of input_mu(n)
, causing the program to remain in a running state and not return any value.
The experimental code is as follows:
`from artiq.experiment import*
class ccd_test(EnvExperiment):
def build(self):
self.setattr_device("core")
self.setattr_device("grabber0")
@kernel
def run(self):
self.core.reset()
self.core.break_realtime()
n = [0]
self.grabber0.setup_roi(0,10,10,20,20)
self.grabber0.gate_roi(1)
delay(100*ms)
print(2)
self.grabber0.gate_roi(0)
print(1)
self.grabber0.input_mu(data = n)
print(n)`
I have inserted print()
statements at different places in the code to display the program's running status (print(2)
and print(1)
are successfully executed).