Borrar filtros
Borrar filtros

Time object cannot be empty

117 visualizaciones (últimos 30 días)
Zihao Liu
Zihao Liu el 17 de Oct. de 2021
Respondida: Francesco el 29 de Feb. de 2024
When I built the code use grt. It caused error:
Internal error while creating code interface description file: codeInfo.mat. Aborting code generation.
Caused by:
  • Time object cannot be empty
How can I solve the problem and what the reason?
  7 comentarios
Soham Sinha
Soham Sinha el 21 de Abr. de 2022
Have the same problem.
Internal error while creating code interface description file: codeInfo.mat. Aborting code generation.
Caused by:
Time object cannot be empty
Jeffrey
Jeffrey el 12 de Feb. de 2024
I have the same problem. Is there a solution yet? It is not an issue of having duplicate codeInfo.mat files as stated in the answers.

Iniciar sesión para comentar.

Respuestas (3)

Morgan Fremovici
Morgan Fremovici el 23 de Mayo de 2022
First verify that there are no duplicate "coderInfo.mat" files on the MATLAB path by entering the command
>> which codeInfo.mat -all
If there are more than one instances of this file, remove the one unrelated to the project from the path and try code generation again.

Philipp Kühl
Philipp Kühl el 22 de Mayo de 2023
The same problem occured for me, when I was compiling Simulink Models into C code using Embedded Coder. Since I was varying the subsystems I used Embedded Coder for, each time a new subfoulder was created in my current directory (name: "subsystemname_rtw"). They all contained a "codeInfo.mat". After I deleated the created folders, the error disappeared.
I assume that
>> which codeInfo.mat -all
and deleting all leftovers is a more elegant way, but the command just gave me an error. That's why I didn't know where to look for "codeInfo.mat"

Francesco
Francesco el 29 de Feb. de 2024
Hi all. We have the same issue also without others codeInfo.mat in the Matlab. We are building a model for real-time target. Did someone find out a definitive resolution to this problem?
Thanks in advance
Internal error while creating code interface description file: codeInfo.mat. Aborting code generation.
Caused by:
  • Time object cannot be empty

Categorías

Más información sobre Simulink Coder en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by