Effacer les filtres
Effacer les filtres

ADLAM PLUTO baseband modulation

13 vues (au cours des 30 derniers jours)
JOB
JOB le 1 Mar 2020
Commenté : ARHUM AHMAD le 30 Mai 2022
Hi, everyone, I'm new to ADLAM PLUTO. I want to transmit/receive Baseband signals (an array of complex numbers) using ADLAM pluto.
The following MATLAB code was used
clc; close all;clear all;
% Setup Receiver
rx=sdrrx('Pluto','OutputDataType','double','SamplesPerFrame',2^15);
% Setup Transmitter
tx = sdrtx('Pluto','Gain',-21);
% Transmit Random
myrandom=(randi([0,1],1,10)+randi([0,1],1,10)*i);
tx.transmitRepeat(myrandom());
% Setup Scope
samplesPerStep = rx.SamplesPerFrame/rx.BasebandSampleRate;
steps = 20;
ts = dsp.TimeScope('SampleRate', rx.BasebandSampleRate,...
'TimeSpan', samplesPerStep*steps,...
'BufferLength', rx.SamplesPerFrame*steps);
sa = dsp.SpectrumAnalyzer;
sa.SampleRate = rx.BasebandSampleRate;
for k=1:steps
ts(rx());
sa(rx());
end
This code produced the following error message
Error using comm.libiio.AD9361.tx/validateInputsImpl
The number of columns of the input signal must match the number of
channels selected for single-channel settings.
Error in comm.libiio.AD9361.tx/transmitRepeat
How can it be done using transmitrepeat() command? Can I have a choice of carrier frequency and type of modulation for this?
How can "The number of columns of the input signal must match the number of channels selected for single-channel settings." be specified in sdrtx?
With what commands can the transmitted signals can be made available for further MATLAB processing after receiving it?
Thanks in advance!
  1 commentaire
ARHUM AHMAD
ARHUM AHMAD le 30 Mai 2022
Try to implement using simulink.

Connectez-vous pour commenter.

Réponses (1)

nicolas pellanda
nicolas pellanda le 27 Avr 2021
try to write the vector in input in your transmit system tx (tx.transmitRepeat()) as a column vector. For doing this try to write
myrandom=(randi([0,1],1,10)+randi([0,1],1,10)*i);
myrandom=myrandom';
tx.transmitRepeat(myrandom());

Community Treasure Hunt

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

Start Hunting!

Translated by