I am getting some errors in the following code;
clc;%Creating transmission object
txPluto = sdrtx('Pluto','RadioID','usb:0','CenterFrequency',2.4e9, ... 'BasebandSampleRate',1e6,'ChannelMapping',1); %creating receiver object
rx = sdrrx('Pluto','RadioID','usb:0','CenterFrequency',2.4e9, ... 'BasebandSampleRate',1e6,'ChannelMapping',1); %Creating fsk modulator and demodulator objects
fskMod = comm.FSKModulator(2,1000,100);fskDemod = comm.FSKDemodulator(2,1000,100);%Creating array of data
data = randi([0 1],5,1);%Modulating the data using FSK scheme
modSignal = step(fskMod,data)%Transmitting singal
txPluto(modSignal);%Releasing the transmitter
release(txPluto);%Capturing the data from the receiver
[data,mdata]=capture(rx,length(modSignal))%Demodulating the signal to attain the original data
%demodSignal=step(fskDemod,data);
demodSignal=fskDemod(data)
At the moment the final line is not working. I get the following error message: "The input data type must be double precision or single precision."
In addition, when the arrays modSignal and data are not the same. Does anyone know why this is?
–Cheers, A
Best Answer