Code generation information file does not exist Problem&Code generation errors&Quadprog code generation

8 次查看(过去 30 天)
Hello, I write a project containing "quadprog"(written with matlab function block. When runing this project in simulink, it works fine. But when generating code with Embeded Coder in simulink(R2021a), an error is reported. After checking, it was found that the error occurred in the quadprog module written with matlab function block. By the diagnostics, I only see the sentence "AttitudeControl_IDMC_MF_allYKQ_HIL111 Failed Code generation information file does not exist",but I don't know exactly where the error is. All the details are shown in following pictures.Any ideas on how to fix it? Thank you for reading and replying!

回答(1 个)

Govind KM
Govind KM 2024-11-4,7:38
编辑:Govind KM 2024-11-4,7:39
As I understand, you are facing an error when trying to generate code using Embedded Coder in Simulink. The most common reasons for the "Code generation information file does not exist" error, along with resolutions steps are:
  • Ensure that the file path does not contain spaces.
  • Ensure that the file path is less than 260 characters, including drive letters and colons. This is a Windows 10 limitation, which can be extended by following the steps outlined in this article:
  • Set the workspace path to match the Simulink file location
  • Redo Setup Hardware from the Hardware Board section in the Hardware tab.
The following MATLAB Answers posts may also be of help:
Hope this resolves the issue!

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by