Non-Native RBWs and FFT size
It is possible to determine the FFT length used by the API when utilizing non-native RBW mode. The
function below returns the FFT length for an arbitrary RBW. A custom flat-top window with variable
bandwidth is built in order to modify the signal bandwidth beyond just FFT length.
1. int non_native_fft_from_rbw(double rbw)
2. {
3. double min_bin_sz = rbw / 3.2;
4. double min_fft = 80.0e6 / min_bin_sz;
5. int order = (int)ceil(log2(min_fft));
6.
7. return pow2(order);
8. }