Error using R2019b version of the MATLAB
16 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Just installed R2019b MATLAB.
SDR with AD9361 is attached to the Host machine.
The host machine's IP is set to 192.168.3.1
The radio is attached to 192.168.3.14.
Now I try to run the following matlab code:
"Transmit and Receive LTE MIMO Using Analog Devices AD9361/AD9364"
I get the following error:
Error using matlabshared.internal.ssh2client
Error connecting to SSH server at 192.168.3.14
Error in matlabshared.socutils.internal.ipcorereg.system
Error in matlabshared.socutils.internal.ipcorereg.IPCoreRegWrite/stepImpl
Error in comm.zynqradioshared.base/writeReg
Error in comm.zynqradioshared.base/initRegisters
Error in comm.zynqradioshared.tx/sdrDevPreInit
Error in comm.libiio.AD9361.base_control/configureChanBuffers
Error in comm.libiio.AD9361.base/configureChanBuffers
Error in matlabshared.libiio.base/setupImpl
Error in comm.libiio.AD9361.base_control/setupImpl
Error in comm.libiio.AD9361.base/setupImpl
Error in comm.libiio.AD9361.tx_control/setupImpl
Error in comm.libiio.AD9361.tx/setupImpl
Error in comm.zynqradioshared.tx/setupImpl
Error in comm.libiio.AD9361.tx/transmitRepeat
Error in finalMIMOad9361 (line 168)
transmitRepeat(sdrTransmitter,eNodeBOutput);
Can someone help me to solve this problem? I want to run two SDR connecting
and sending data on the air.
0 Kommentare
Antworten (6)
Ben Cunningham
am 7 Okt. 2019
Bearbeitet: Ben Cunningham
am 3 Dez. 2019
It looks like you are having trouble connecting to your radio. Can you verify that you can complete the Hardware Setup App or manually ping the device?
----------------
ANSWER:
I expect that what has happened in your case is that you had a corrupted SD card. To get it working you reformatted the SD card removing the issue. Then when you followed step 4 of the Manual Host-Radio Hardware Setup it worked correctly.
5 Kommentare
Ben Cunningham
am 14 Okt. 2019
Hi Jarul,
This does not seem to be related to the question initially posed. To effectively answer your question we must try to restrict to a narrower scope.
Does this mean that the inital question is no longer blocking? What was your workaround?
There may have been a temporary third party download outage. I am not aware of any install issue on any OS at the moment.
You can still step the Rx system object exactly as you did in previous releases ie "sdrReceiver();".
Please reference the capture documentation for more information on the capture function. The basic syntax is "[data, metadata] = capture(sdrReceiver, captureLength, 'Seconds');"
I have no idea what code you are running so I'm afraid I cannot diagnose this further.
Cheers,
Ben
Ben Cunningham
am 22 Okt. 2019
Hi Jarul,
I noticed you re-posted the same question again.
I'm happy to help but please provide the following details to help get us started.
- OS MATLAB is running on
- The SDR Hardware being used
- Whether you are using the new Libiio or the Legacy mode
- If you have been through the Hardware Setup App successfully, including the final panel
- The code you are trying to run
- Exactly what happens when you run the code
- Anything else custom or otherwise relevant
Ben Cunningham
am 23 Okt. 2019
Bearbeitet: Ben Cunningham
am 23 Okt. 2019
Thank you for getting back with the further details of your setup.
Please verify you can complete the steps outlined in the Manual Host-Radio Hardware Setup documentation page.
Completing this is important as the error you have been repeatedly posting seems to indicate that MATLAB is having trouble communicating to your radio. Completing the steps linked should set-up and verify that connection.
The changes to the transmit and receive/capture methods should not be the cause of the error.
Perhaps you could screenshot what you mean when you say that the SDR library is not showed as installed? Does the Xilinx Zynq-Based Radio HSP show in your Add-On Manager?
The 'LTE transmit and receiver for zynq SDR' will not work if 'the transmit and receive function does not work correctly' which will not work if MATLAB cannot connect to your radio. Please complete the linked steps and let me know if you can complete it successfully.
After completing successfully you could try some minimal code for example:
rx = sdrrx('AD936x')
capture(rx, 10, 'Samples')
27 Kommentare
Ben Cunningham
am 3 Dez. 2019
Hi Jarul,
I'm glad you got it working!
You should not use the ADI image it will not work, you must use the Mathworks image as instructed in the Manual Host-Radio Hardware Setup.
I expect that what has happened in your case is that you had a corrupted SD card. As part of the workflow when you followed the ADI SD card image steps you probably reformatted it removing the issue. Then when you followed step 4 of the Manual Host-Radio Hardware Setup the Mathworks image was downloaded replacing the ADI image.
The steps should be clear in the Manual Host-Radio Hardware Setup however in your case your SD card needed reformatted. I will see if a note can be added to the documentation to suggest trying this as a troubleshooting step.
All the best,
Ben
jarul
am 25 Okt. 2019
1 Kommentar
Ben Cunningham
am 25 Okt. 2019
Bearbeitet: Ben Cunningham
am 25 Okt. 2019
Thank you for the further context.
The capture function is a 19b addition and therefore not present in 19a. Please reference 19a documentation and examples when using 19a to ensure compatibility. The 19b updates to the LTE transmit and receive example are not backwards compatible with 19a.
I am able to run the LTE transmit and receive example locally on my computer without any such issues.
As you have alluded to yourself I believe this is an install issue which is preventing you from connecting to your radios. Please go through the steps I linked you to in my previous response in your 19b install and verify this.
jarul
am 26 Okt. 2019
1 Kommentar
Ben Cunningham
am 31 Okt. 2019
Hi Jarul,
It looks like you might have a corrupted install somewhere.
Are you using Embedded Coder and the Embedded Coder Zynq Support package?
You could see if the command
zynq
is able to connect to your hardware?
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!