I'd like to be able to look at the output of the LNA in the AD9361 Simulink model. I've been able to modify the model to get the output from the IQ demod, but no further back towards the receive antenna. The issue is that when I take the output from the LNA, I still get the spectrum from roughly -5.5 to +5.5MHz. I'm not sure how to set the spectral display. It seems that the issue is with the inherited sample rate in the spectral display, but I don't see how to adjust that.
One other question. In the LNA, I see that NF (noise figure) is used as a variable to set the noise contribution of the LNA, but I don't see where in the model where NF is actually defined/quantified.
I was referring to the Dialogbox of the Outport block (labeled Outport_Q in your first screenshot), not LNA.
Can you indicate the block at the output of which you are connecting the spectrum analyzer.
As for the NF variable, it can be found as follows. Right click RF_RX block, select Mask->View Mask. Then select Initialization tab in the Mask Editor. You'll find NF extrapolated from the noise figure values in the datasheet using interp1 MATLAB function.
This is what I'm doing. I've created an extra output from RF_Rx, from the LNA. I then moved the output of the block from DDC_Filters_Rx to this new output of RF_Rx. Thanks!
The model takes into account the non-idealities present in the process of converting real passband signal to complex baseband, but doesn't actually implement this step.
In fact, if you select Display->Signals & Ports->Port Data Types, you will see the data types of the various signals connecting the blocks. You will find that the input going into ad9361_RX in the top level view of the model is of type complex double.
OK, thank you again for the quick response. I'm looking at the output of the LNA, and have the oversampling rate set to 1.5 (default), so looking at +/-5MHz. I see nothing but noise at the LNA output, same at the LNA input. I can see the 2 MHz RF in the baseband spectrum analyzer, but I don't see it in the signal chain until after the demod.
Hi Srikanth, any thoughts on why I'm seeing only noise at the LNA output, no 2MHz signal, even though I see the 2MHz on the demod output?
Hi Steve, sorry for the delay. Double-click the Outport block that is connected to the output of the LNA and set the carrier frequency to 2 GHz, the LO frequency used at the top-level of the ad9361_RX block. This will show the 2 MHz signal.
Hi Srikanth, when I double click on the LNA block, I get the dialogue box shown below, that only gives me input and output impedances for parameters. Am I doing something wrong?
That was it, working fine now, thank you!
For the most part, this is working. However, I noticed that the expected output (@LO = 2GHz and RF = 2MHz) is sitting at about 2.5MHz, not where is should be at 2MHz. By itself this is a problem, but I am also getting spurs at about 4.5MHz. This is really messing up my attempt at harmonic distortion measurement.
If I look at the demodulated output of the system, the signals show up at 2MHz, exactly where I placed them.
Do you have any idea of where this inaccuracy is coming from?
Hi Steve, which output signal is this spectrum analyzer block plotting? Is it connected to the output of AD9361_RX block? Did you make any other changes to the model?