Why do I get the error 'Too many input arguments', when executing 'tx(data,fc)'?

3 visualizzazioni (ultimi 30 giorni)
I set up my SDR transmitter device as follows:
tx = comm.SDRuTransmitter('Platform', 'fooPlatform', ...
'SerialNum','fooSerialNumber', ...
'CenterFrequency',fc, ...
'InterpolationFactor',fooFactor, ...
'MasterClockRate', fooRate,...
'Gain',fooGain);
If 'data' is a sine wave signal, when I use
tx(data, fc)
to transmit the signal, I get the following error:
Too many input arguments. Expected 1 (in addition to System object), got 2.

Risposta accettata

MathWorks Support Team
MathWorks Support Team il 8 Giu 2021
The function call should be modified as tx(data) instead of tx(data, fc), as specified in this example:
In this case, the carrier frequency is set when the system object is set up, so it should not be included in the function call.

Più risposte (0)

Categorie

Scopri di più su Communications Toolbox in Help Center e File Exchange

Prodotti


Release

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by