Hello!
I need some help troubleshooting an issue with our Sampler. I can't for the life of me figure out what's wrong.
The basic issue is this: Our Kasli can't seem to communicate properly with the sampler's ADC and PGIA registers. The samples just read out as zero even when voltages are being applied, and the PGIA register seems to return a random 16-bit integer whenever get_gains_mu() is called.
I was wondering if the issue is in our code somewhere. From the other sampler code I've seen, it seems like this should be fine, but there could easily be something important I'm missing. The code we're trying to run is below:
from artiq.experiment import *
class SamplerTest(EnvExperiment):
def build(self):
self.setattr_device("core")
self.setattr_device("sampler0")
@kernel
def run(self):
self.core.reset()
self.core.break_realtime()
# initialize data container and device
data = [1.0]*8
self.sampler0.init()
# collect and show data
self.sampler0.sample(data)
print(data)
As far as our hardware setup goes, we've got a v1.1 Kasli, a v1.1 SMA-DIO, and a v2.2 Sampler. As far as I know, these devices are connected through the right EEMs, and the device_db.py file is complete. We can run experiments using our DIO, so I'm fairly sure the Kasli is configured properly. Are there any obvious issues we could be having?