Why do I get the error 'Too many input arguments', when executing 'tx(data,fc)'?
조회 수: 7 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2021년 6월 8일
답변: MathWorks Support Team
2021년 8월 26일
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.
채택된 답변
MathWorks Support Team
2021년 6월 8일
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.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Communications Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!