And I use the following code(one part of the code) to test the sample rate :
@kernel
def run(self):
self.core.break_realtime()
self.sampler0.init()
for i in range(8):
self.sampler0.set_gain_mu(8, 0)
volt = [0 for _ in range(100)]
xaxis = [0 for _ in range(100)]
for i in range(100):
with parallel:
voltages = [0]*8
self.sampler0.sample(voltages)
volt[i] = voltages[0]
xaxis[i] = i
delay(100*us)
self.set_dataset("volt", volt ,broadcast=True)
self.set_dataset("xaxis", xaxis, broadcast=True)
I change the delay(100*us) to test the sample rate, and is this method ok?