Both R2023b and R2024a have the same issue after the hardware connection fix shown in https://www.mathworks.com/matlabcentral/answers/2149119-failed-to-connect-to-hardware-when-building-and-loading-for-external-mode
Replicate the Event-Driven Task in External Mode
3 views (last 30 days)
Show older comments
Chao-Hwa Chen
on 30 Aug 2024
Commented: Chao-Hwa Chen
on 18 Sep 2024
I am trying to replicate the simulation results of the event-driven task in external mode. I ran in R2022a. My board is Zedboard. The solver is in fixed step.
After building and running it, it has several warnings, including
Saving external mode simulation output as a single object is not supported because the workspace variable 'out' is not created during model code execution. To suppress the warning, set 'ReturnWorkspaceOutputs' to 'off'.
No data has been selected for uploading.
When I open Data Inspector, the processed data is always zero. How to make the process data to generate the results like simulation?
5 Comments
Accepted Answer
Kautuk Raj
on 11 Sep 2024
I understand that you are encountering an error with the External Mode MEX-file 'ext_comm', which indicates a failure to connect to the target.
The error observed "Failed to connect to the target" indicates there is an issue with hardware connectivity.
The following workarounds can be tried to resolve the issue:
1. Check if you have configured the host computer as well as the radio hardware. The following documentation page can be referred to for more information on “Guided Host-Radio Hardware” setup: https://www.mathworks.com/help/releases/R2022a/supportpkg/xilinxzynqbasedradio/ug/hardware-and-software-requirements.html
2. Call the ‘zynq’ function from MATLAB command prompt with the following syntax to make sure that MATLAB is set up with the correct physical IP address of the radio hardware.
devzynq = zynq('linux','192.168.3.2','root','root','/tmp');
Further, click on "Monitor & Tune" to check if the issue is resolved.
More details about can be found on this page: https://www.mathworks.com/help/releases/R2022a/supportpkg/xilinxzynqbasedradio/ug/installation-for-hardware-software-co-design.html
I trust this will assist you in resolving the connectivity issue.
4 Comments
Kautuk Raj
on 12 Sep 2024
There may be an issue with the hardware (Zedboard) being used, I suggest contacting MathWorks Technical Support for further investigation and troubleshooting at https://www.mathworks.com/support/contact_us.html
More Answers (1)
See Also
Categories
Find more on Processor Software in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!