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.

Check Radio Connection

Block Connection

You can verify that the RTL-SDR Receiver block is connected to RTL hardware by examining the block mask.

  1. Open model with an RTL-SDR Receiver block.

  2. Double click on the block to open the block mask.

    If the block is connected, then the Hardware Information panel shows the current settings of the RTL radio.

    If the block is not connected, the Hardware Information panel shows the message Cannot find radio.

Note that a block can connect to only one receiver at a time, on the same radio address.

System Object Connection

Follow these steps to verify that your RTL-SDR receiver System object™ is connected to the RTL-SDR radio:

  1. Construct an RTL-SDR receiver System object:

    h = 
      System: comm.SDRRTLReceiver
               RadioAddress: '0'      
            CenterFrequency: 102500000
             EnableTunerAGC: true     
                 SampleRate: 250000   
             OutputDataType: 'int16'  
            SamplesPerFrame: 1024     
        FrequencyCorrection: 0  
  2. Enter the following command:


    If there is a radio at RadioAddress 0, then the information returned shows the current settings of the RTL radio.

    ans = 
                    RadioName: 'Generic RTL2832U OEM'
                 RadioAddress: '0'
                  RadioIsOpen: 0
                    TunerName: 'R820T'
                 Manufacturer: 'Realtek'
                      Product: 'RTL2838UHIDIR'
                   GainValues: [29x1 double]
          RTLCrystalFrequency: 28800000
        TunerCrystalFrequency: 28800000
                 SamplingMode: 'Quadrature'
                 OffsetTuning: 'Disabled'

A System object can only connect to one subdevice (receiver) at a time, on the same radio address. RTL-SDR radio System objects connect to a subdevice when you call the step method, and will stay connected until you call the release method.

See Also


System Objects

Related Topics