For the pyadi-iio code, the code below will help initialise the board
There is a script on the SD-Card however, "ad4080_update_clks.sh" that can be called via a com port or otherwise that runs the necessary commands from Linux, until we've found the best way to call these directly through the python example.
Set up the AD4080 configuration
ser = serial.Serial(
port='COM5', ## CONFIGURE FOR YOUR COM PORT
baudrate=115200,
parity=serial.PARITY_NONE,
stopbits=serial.STOPBITS_ONE,
bytesize=serial.EIGHTBITS
)
ser.isOpen()
ser.flushInput()
time.sleep(1)
ser.write(b'bash ad4080_update_clks.sh')
time.sleep(2)
ser.close()