I control servo with simulink but get this error when build, deploy and start: Error:Error(s) encountered while building "Servo". Please help me, thanks.

Top model targets built:
Model Action Rebuild Reason
=================================================================
Servo Failed Code generation information file does not exist.
0 of 1 models built (0 models already up to date)
Build duration: 0h 0m 18.546s
Error:Error(s) encountered while building "Servo"

답변 (1개)

Hi Thang,
The above mentioned error is likely caused by the file path being too long or containing spaces or special characters, which can interfere with the code generation process. To resolve this, shorten the path and use a simpler directory name without spaces or special characters. For instance, a path like "C:\Sim\Servo" is ideal.
Additionally, backup or network-synced folders (such as OneDrive or mapped network drives) can cause issues during the build. It's best to use local, non-synced folders to avoid this problem.
This is one possible fix. Refer to the following MATLAB Answer for additional solutions:

카테고리

도움말 센터File Exchange에서 Test Execution에 대해 자세히 알아보기

질문:

2025년 3월 26일

답변:

2025년 4월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by