Time object cannot be empty (Simulink coder problem during build)

16 ビュー (過去 30 日間)
Onkar Vader
Onkar Vader 2022 年 4 月 5 日
回答済み: Naga 2025 年 3 月 12 日
Hello Experts,
I hope you all doing well. I am facing a problem during a simulink model build process. I am getting an error called "Time object cannot be empty". I have tried to find solution in different ways but no luck till now. If anyone already knows the cause/solution of the problem, please let me know.
Thank you in advance.
kind regards
Onkar Vader
  2 件のコメント
Javier Merino
Javier Merino 2022 年 5 月 3 日
編集済み: Javier Merino 2022 年 5 月 3 日
Did you solve the problem?

サインインしてコメントする。

回答 (1 件)

Naga
Naga 2025 年 3 月 12 日
Hello Onkar,
This issue might be due to the presence of a secondary 'codeInfo.mat' file in your MATLAB path. To address this, you can check for multiple instances of this file by executing the following command:
>> which codeInfo.mat -all
If you find more than one 'codeInfo.mat' file, remove the one that is not related to your current model from the path.
If this doesn't resolve the issue, you can try restoring the default MATLAB path with these commands:
>> restoredefaultpath
>> rehash toolboxcache
>> sl_refresh_customizations
Before running these commands, it might be wise to save your current path settings. For more detailed troubleshooting tips, you can refer to the MATLAB Answers post How can I perform initial troubleshooting of MATLAB or Simulink errors?

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by