Optimization in analog and threshold scans of the AZ
The idea is that in analog and threshold scans we send a bunch of consecutive injection cycles (for example 100) and then we stop for a while in order to write register and so on. During to this window of some ms AZ is never sent, therefore the first injection can come with still the FE non properly settled as there was a big window without AZ. So the idea would be to do as follows (this is an example for the analog scan): we put a long AZ + 80 syncs inside the mask for cycle just before the inject_analog_single loop starts. I think this would help a bit, does it make sense for you?
for mask in mask_data:
self.chip.write_command(mask['command'])
if mask['flavor'] == 0:
**self.chip.write_global_pulse(width=9, write=True) #Long AZ before cycle
self.chip.write_sync_01(write=False) * 80 #Long AZ before cycle**
self.chip.inject_analog_single(send_ecr=True, repetitions=n_injections)
else:
self.chip.inject_analog_single(repetitions=n_injections)
pbar.update(1)
Edited by Ennio Monteil