"Serial communication failed" in host-target communication
2 次查看(过去 30 天)
显示 更早的评论
Hello,
I'm using a model to estimate my PMSM parameters. I already deployed the target model onto my target. The problem is now as soon as I press "Run" in the host model the Serial communication failed and it's showing me an error.
I already checked the COM port, baud rate, the SCI settings. Everything looks right but still not working.
(I checked the communication with another model to see if it's still crashing. But no it works fine with another model.)
The shown error output is attached.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1397819/image.png)
0 个评论
回答(1 个)
Nithin Kumar
2023-8-24
Hi Baris,
I understand that you are facing an error while running the simulation of the host model to communicate with the target using Serial Communication.
This error could be caused due to the following reasons:
1. Parameter Configuration: The simulation may be encountering errors due to incorrect or incompatible parameter configurations within the component. Double-check the parameters and settings to ensure they are appropriate for the simulation.
2. Signal or Data Issues: The simulation could fail if the input signals or data being processed within the "Signal Conditioning" part of the algorithm are not as expected. Check the input data and make sure they are within the expected ranges and formats.
3. Code or Algorithm Errors: There could be programming errors or logical issues within the algorithm or code that's being executed during the simulation. Review the code and algorithm to identify any mistakes or issues that could be causing the error.
4. Resource Limitations: The simulation might be using more resources (memory, processing power, etc.) than what's available. This can cause the simulation to crash. Check the resource usage during the simulation and make sure it's within acceptable limits.
To know more information about the Systematic diagnosis of Errors and Warnings in Simulink, kindly refer to the following documentation.
I hope this answer helps you.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deployment, Integration, and Supported Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!