Red Pitaya MATLAB code for AFC detection and tuning voltage updates
Code to read the reflected signal from AFC to decide the current state and update voltage to set a new value.
Red Pitaya Channel 2 is used to read the signal
Analog output channel 0 is used to update the voltage value