How do you recieve your transmission, Live-script
이전 댓글 표시
I have data that I want to send over from the TX antenna to the RX antenna. (using the Adalm-Pluto, and MATLAB live script)
This is what I have so far...
tx_symbols_QAM16 % This is where my data comes from
rx_symbols_QAM16 % This is where my recieved data should go to
% Create recieve and send objects.
recieve_object = sdrrx("Pluto", ...
"RadioID", "usb:0", ...
"CenterFrequency", Pluto_CenterFrequencyGHz *1e9, ...
"GainSource", "AGC Fast Attack", ... % Automatic gain, set for signals with rapidly changing power levels.
"BasebandSampleRate", Pluto_BaseBandSampleRateMHz *1e6, ...
"OutputDataType", "double", ...
"SamplesPerFrame", Pluto_SamplesPerFrame, ...
"EnableBurstMode", Pluto_EnableBurstMode, ...
"NumFramesInBurst", Pluto_NumFramesInBurst)
transmit_object = sdrtx("Pluto", ...
"RadioID", "usb:0", ...
"CenterFrequency", Pluto_CenterFrequencyGHz *1e9, ...
"Gain", -10, ... % [-87.75..0]dB D=-10, step=0.25dB
"BasebandSampleRate", Pluto_BaseBandSampleRateMHz *1e6)
rx_symbols_QAM16 = recieve_object(); % Start recieving
transmit_object(tx_symbols_QAM16); % Start sending
But when I run this then it first recieves and when it is done recieving it will start transmitting.
How to recieve your own transmission?
채택된 답변
추가 답변 (1개)
Walter Roberson
2025년 2월 19일
1 개 추천
sdrtx() supports BISTLoopbackMode
댓글 수: 11
Walter Roberson
2025년 2월 20일
편집: Walter Roberson
2025년 2월 20일
You need to enable ShowAdvancedProperties https://www.mathworks.com/help/comm/plutoradio/ref/sdrtx.html#bvn84t3-1_sep_mw_0b8bd99f-bfbc-416c-81d8-76ee6c5cd2d9
Koen
2025년 2월 20일
Walter Roberson
2025년 2월 20일
Did you enable ShowAdvancedProperties on the receiver as well?
Koen
2025년 2월 20일
Koen
2025년 3월 17일
Koen
2025년 3월 18일
Walter Roberson
2025년 3월 18일
If you are using MS Windows, then you can use System.Diagnostics.Process to create processes that you can pipe input to and get "live" output from.
If you are using Linux, then you can go through the trouble of creating named pipes that can be read from or written to.
Koen
2025년 3월 22일
Walter Roberson
2025년 3월 22일
It will never be possible to get access to a workspace from a process started by !matlab or System.Diagnostics.Process, or parfor or parfeval with process pool. (parfeval() with a background pool in theory shares some of the address space, but there are restricted things you can do with the shared access.)
To transfer information to a process started with System.Diagnostics.Process, use input redirection. See for example https://www.mathworks.com/matlabcentral/answers/586706-how-to-redirect-standard-input-and-standard-output-using-net-system-diagnostics-process#answer_487475
카테고리
도움말 센터 및 File Exchange에서 Analog Devices ADALM1000 Support from Data Acquisition Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


