How to create a USRP NI 2920 Transmitter object in MATLAB
13 views (last 30 days)
Show older comments
Hi i am working with NI 2920 usrp . i can detect the sdr using the code 'findsdru ',but i cannot figure out how to send the ppm signal that i created earlier in matlab to the usrp . What i am getting is, i need to create an object but still how will a real time transmission will carry out is not clear . Any help is really appreciated.
0 Comments
Answers (1)
Ninad
on 20 Jan 2024
Hi Sana,
As per my understanding, you are working with a NI 2920 USRP and trying to send a PPM signal that you created earlier in MATLAB to the USRP. You have used the "findsdru" code to detect the SDR, but are unsure how to create an object and carry out real-time transmission.
To send data to a USRP hardware device, you can use the "comm.SDRuTransmitter" object in MATLAB. The SDRuTransmitter System object sends data to a Universal Software Radio Peripheral (USRP) hardware device, enabling simulation and development for various software-defined radio applications.
The following line of code creates a defautl SDRu transmitter System object.
tx = comm.SDRuTransmitter
The following line of code sends data to a USRP device associated with the "comm.SDRuTansmitter" System object "tx" and returns an integer value that indicates data discontinuity for the input data input.
underrun = tx(input)
Where, "input" is an input signal sent to the USRP radio, specified as a complex column vector or complex matrix.
You can go through following MATLAB documentation for more details on the "comm.SDRuTransmitter" object:
Hope this helps.
Regards
Ninad
0 Comments
See Also
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!