Main Content

Query Radio Address

Block Radio Address

If the RTL-SDR Receiver block is connected to an RTL-SDR radio, the Radio address parameter shows the valid radio address. You cannot change the radio address using this parameter, but you can query a different radio that is connected to a different USB port by changing the radio address. To check the radio address of the connected RTL-SDR radio, follow these steps.

  1. Open the model that contains the RTL-SDR Receiver block for which you want to query the radio address.

  2. Open the block mask by double-clicking the block.

  3. Identify the radio address (the Radio address parameter value) of the RTL-SDR radio to which the block is connected to in the Radio address field.

System Object Radio Address

To check the radio address of the connected RTL-SDR radio, follow these steps.

  1. Identify the radio address that is associated with the comm.SDRRTLReceiver System object™. For this example, create a default RTL-SDR receiver System object.

    radio = comm.SDRRTLReceiver
    radio = 
     comm.SDRRTLReceiver with properties:
     
               RadioAddress: '0'
            CenterFrequency: 102500000
             EnableTunerAGC: true
                 SampleRate: 250000
             OutputDataType: 'int16'
            SamplesPerFrame: 1024
        FrequencyCorrection: 0
            EnableBurstMode: false
  2. Check the valid radio address by using the RadioAddress property. The radio address for this System object is 0.

    radioID = radio.RadioAddress
    radioID = '0'

You can change the radio address by using the same property, but you must first configure the radio to use a different port. For more information on how to configure multiple radios, see Configure Multiple RTL-SDR Radios. For the previous example, change the radio address of the RTL-SDR radio from 0 to 2.

radio.RadioAddress = '2'
radio = 
 comm.SDRRTLReceiver with properties:
 
           RadioAddress: '2'
        CenterFrequency: 102500000
         EnableTunerAGC: true
             SampleRate: 250000
         OutputDataType: 'int16'
        SamplesPerFrame: 1024
    FrequencyCorrection: 0
        EnableBurstMode: false

See Also

Blocks

Objects