Error when running Pluto Radio QPSK Example

7 views (last 30 days)
Recently, I have been attempting to run the 'QPSK Transmitter with ADALM-PLUTO Radio' and 'QPSK Receiver with ADALM-PLUTO Radio' examples in MATLAB R2020b. However, I have been encountering the following error:
'QPSKDataDecoder' is used in QPSK Transmitter and Receiver Error in QPSKReceiver/setupImpl (line 113) obj.pDataDecod = QPSKDataDecoder(... Error in runPlutoradioQPSKReceiver (line 56) [~, ~, ~, BER] = rx(rcvdSignal): Error in RX (line 5) BER = runPlutoradioQPSKReceiver(prmQPSKReceiver, printReceivedData);
For reference, you can access the documentation for these examples by executing the following commands in the MATLAB R2020b command window:
Transmitter Example:
>> web(fullfile(docroot, 'supportpkg/plutoradio/ug/qpsk-transmitter-with-adalm-pluto-radio-1.html'))
Receiver Example:
>> web(fullfile(docroot, 'supportpkg/plutoradio/ug/qpsk-receiver-with-adalm-pluto-radio.html'))
Why is this error occurring, and how can it be resolved?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 25 Jan 2025
Edited: MathWorks Support Team on 31 Jan 2025
The 'plutoradioQPSKReceiverExample' throws the error:
'QPSKDataDecoder' is used in QPSK Transmitter and Receiver
This error occurs due to a missing file 'QPSKDataDecoder' in the Support Package path. Both the 'plutoradioQPSKReceiverExample' in Pluto Hardware Support and 'QPSKTransmitterAndReceiverExample' in the Communications Toolbox use a common file 'QPSKDataDecoder' that is missing in the support package directory, resulting in this error.
To resolve this issue:
Click on the link "QPSK Transmitter and Receiver" in the error message:
'QPSKDataDecoder' is used in QPSK Transmitter and Receiver
This action will change the current folder path to the 'QPSKTransmitterAndReceiverExample' directory in the Communications Toolbox, where 'QPSKDataDecoder' is available.
Next, execute the following command in the MATLAB Command Window to add this location to the MATLAB path:
>> addpath(pwd)
After doing so, both 'plutoradioQPSKReceiverExample' and 'QPSKTransmitterandReceiverExample' should run successfully.
Please follow the link below to search for the required information regarding the current release:

More Answers (0)

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!