Hello,
I have a problem with the DDS output is very small (20mV) and when I change the set amplitude it didn't change at all. Earlier I was having this same problem but I was able to solve by (I think?) setting the attenuator to 0. Today I have the same problem but using the same line earlier even with 0dB I can not solve it and it is stuck at 20mV no matter the amplitude. This is the script I used
from artiq.experiment import *
class Main(EnvExperiment):
"""
"""
def build(self):
self.setattr_device("core")
self.setattr_device("urukul0_ch0") # DDS
@kernel
def run(self):
self.core.reset()
delay(20*ms)
self.urukul0_ch0.cpld.init()
self.urukul0_ch0.init()
self.urukul0_ch0.sw.on()
self.urukul0_ch0.set_att(0*dB)
self.urukul0_ch0.set(108*MHz, 1.0)
I have tried to put some delay here and there to avoid underflow, I tried to witch the position of the set_att line, etc but nothing works.
The only error I gave is that I have a mismatch version:
Mismatch between gateware (5.7132.e8ef0ce4) and software (5.7151.76370714) versions
because I reinstall ARTIQ recently on Feb 10th (before ARTIQ 6 release). After the new install, everything (DDS included) works until today where I have this problem of the DDS amplitude (I've really seen this a few time but it usually go away after I set attenuator to 0 or I put some delay to avoid underflow).
Can you help me with this? Do you think I should flash the device? Thank you and have a nice weekend!