SDR Receiver Sample Times
You can set the sample time of all receiver blocks and receiver System objects available in the Communications Toolbox™ Support Package for Xilinx® Zynq®-Based Radio.
Consider changing the default sample time only when deploying a hardware-software co-design implementation.
Set Sample Times in Receiver Block
The automatic output sample time of the receiver block corresponds to the value Samples per frame parameter divided by Baseband sample rate (Hz) parameter. To change the sample rate on the receiver block, on the Advanced tab of the block mask, select Override automatic sample time, then set the value with the Sample time parameter. For example, for a baseband sample rate of 1 MHz, and a frame size of 4000, the sample period should be 4000/1e6.
Set Sample Rate in Receiver System Object
The receiver sample period is the time interval between successive output samples of
the receiver System object™. The receiver determines the radio hardware frequency sample times using
BasebandSampleRate property. Set the sample rate for any
downstream processing using the
Create a receiver System object and get data from it. For example:
rx = sdrrx('AD936x'); [data,validData,overflow] = rx();
Examine only one channel and assign a sample rate.
data = data(:,1); SampleRate = rx.BasebandSampleRate;
Examine the received signal spectrum using a spectrum analyzer.
specAnalyzer = dsp.SpectrumAnalyzer('SampleRate',SampleRate); specAnalyzer(data);