This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Set Sample Times

Sample Times Using the RTL-SDR Receiver Block

The sample time in an RTL-SDR Receiver block is the Simulink® sample time. It is not related to the sample time of the data that the board receives over the air. However, it is a good practice to set the block's sample time to match the hardware sample time.

The sample time specified by the block mask is the time interval between successive output samples of theRTL-SDR Receiver block. If you turn on the sample time colors of the model, via Format > Sample Time Display > All, the sample time value at the output of the RTL-SDR Receiver block corresponds to the Simulink sample time. This is the time interval between block outputs. The Simulink sample time is equal to the sample time specified in the block mask times the vector length at the output of the block.

Samples Times Using the SDRu Receiver System Object

The comm.SDRuReceiver System object™ sample rate is the sample rate between successive samples of MATLAB® data, specifically, the time interval between successive output samples of the comm.SDRuReceiver System object. It is not related to the sample time of the data that the board receives from the comm.SDRuTransmitter System object. However, it is a good practice to set the System object sample rate to match the hardware sample time.

For example:

h = comm.SDRRTLReceiver;
h.SampleRate = 200000;
h = 

  System: comm.SDRRTLReceiver

  Properties:
           RadioAddress: '0'      
        CenterFrequency: 102500000
         EnableTunerAGC: true     
             SampleRate: 200000   
         OutputDataType: 'int16'  
        SamplesPerFrame: 1024     
    FrequencyCorrection: 0        

See Also

Blocks

System Objects

Related Topics