Can the RTL-SDR Simulink block be used in the direct sampling mode of the dongle for low frequency operation?

3 views (last 30 days)
I'd like to use the RTL-SDR dongle at lower frequencies in the direct sampling mode (HF operation for example). Does the Simulink block support the direct sampling mode? Does the MATLAB function block support direct sampling?
Thanks,
Mark

Accepted Answer

Mark Thompson
Mark Thompson on 12 Oct 2020
I figured out how to expose the Sampling Mode property of the Simulink RTL-SDR block and allow setting the Sampling mode to use the Direct sampling feature of the dongle.
The Simulink block is in a library, so you can unlock the library and modify the library block so that it will be active for all future uses or in your model you can disable the link so that the change will only be local.
Once you decide which way you want to go you need to expose the Sampling Mode parameter. To do this, right click on the block and select "Mask", then "Edit Mask". This will open the Mask GUI.
In the Mask Gui select the Parameters & Dialog tab.
This will show all the parameters available for the block. Scroll down towards the bottom and find the parameter "Sampling Mode".
You need to make both the parameter dialog and its container visible. To make the parameter visible select the "Sampling Mode" parameter. This will bring up the Property Editor in the right hand pane. Find the Dialog section and check the box for Visible.
Now scroll up and find the folder that contains all the parameters. It is labeled "Parameters". Select it and the Property Editor will open on the right hand side. Again under Dialog check the box for Visible.
Apply changes and hit OK.
Now when you double click on the block in the model you should see a container for Parameters and within that container the Sampling Mode parameter. If you select the drop down box you should see Quadrature, DirectI and DirectQ.
I created a copy of the original block and put it in the sdrrlib library then made my modifications to the copy.
  1 Comment
Ali Al-Sheikh
Ali Al-Sheikh on 24 Dec 2021
Edited: Ali Al-Sheikh on 24 Dec 2021
Can we do the same to the functions available in MATLAB by passing some argument during the initialization process when creating the radio object? I wonder if this could also be enabled there.

Sign in to comment.

More Answers (0)

Categories

Find more on Communications Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!