Check Radio Connection
Block Connection to RTL-SDR
To verify that an RTL-SDR Receiver block is connected to RTL-SDR hardware, follow these steps.
Open the model that contains the RTL-SDR Receiver block for which you want to check the connection.
Open the block mask by double-clicking the block. If the block is connected to the RTL-SDR hardware, click Info to return this information from the radio. Values going to the RTL-SDR radio are often quantized by the hardware. These values are the actual RTL-SDR device settings.
If the block is not connected to the RTL-SDR hardware, click Info to return this message in the
'Cannot find radio'.
A block can connect to only one receiver at a time on the same radio address.
System Object Connection to RTL-SDR
To verify that an RTL-SDR receiver System object™ is connected to RTL-SDR hardware, follow these steps.
Identify the radio address that is associated with the
comm.SDRRTLReceiverSystem object for which you want to check the connection. For this example, create a default RTL-SDR receiver System object. The radio address for this System object is 0.
radio = comm.SDRRTLReceiver
radio = comm.SDRRTLReceiver with properties: RadioAddress: '0' CenterFrequency: 102500000 EnableTunerAGC: true SampleRate: 250000 OutputDataType: 'int16' SamplesPerFrame: 1024 FrequencyCorrection: 0 EnableBurstMode: false
Report the radio information of all RTL-SDR hardware that is connected to the host computer by using the
sdrinfofunction, specifying the radio address associated with the System object as the function input..
hwinfo = sdrinfo('0')
If a radio is connected to the specified radio address, then the RTL-SDR hardware returns this information.
hwinfo = RadioName: 'NESDR' RadioAddress: '0' RadioIsOpen: 0 TunerName: 'E4000' Manufacturer: 'NooElec' Product: 'NESDR SMArTee X' GainValues: [14×1 double] RTLCrystalFrequency: 28800000 TunerCrystalFrequency: 28800000 SamplingMode: 'Quadrature' OffsetTuning: 'Disabled'