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
5 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Kautuk Raj
2024-9-11
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 个评论
Kautuk Raj
2024-9-12
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
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Processor Software 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!