Error message in Simulink

8 次查看(过去 30 天)
Alexander S.
Alexander S. 2023-3-20
Hello,
when I try to run my Simulink program I suddenly get the following error message:
In 'coder_compile:toolchain:ToolchainRegistryIsEmpty', parameter {0} must be a real scalar.
The error appears sometimes and sometimes not. Sometimes after a Matlab restart the error is gone, but not always. Sometimes it is so penetrating that it does not disappear at all.
I don't know where it suddenly comes from, I don't know where to start looking? Can anyone of you help?

回答(1 个)

Sivapriya Srinivasan
Hello,
The error message you are seeing indicates that there is an issue with the MATLAB toolchain registry. This registry is responsible for managing the tools that MATLAB uses to build and compile code, including Simulink models.
There are several things you can try to resolve this issue:
1.Check your MATLAB version and update it to the latest version if necessary. Sometimes, outdated MATLAB versions can cause issues with the toolchain registry.
2.Check if any changes have been made to your MATLAB or Simulink installation recently. If so, try to revert those changes and see if the error goes away.
3.Try clearing the MATLAB toolchain registry by running the following command in the MATLAB command window:
>> coder.cleanupToolchainRegistry
This will clear any invalid entries in the registry and may help to resolve the issue.
4.If none of the above solutions work, you may need to reinstall MATLAB and/or Simulink to ensure that your installation is functioning correctly.
If the error persists, it may be helpful to contact for further assistance
You can also refer to this documentation for reference
Hope this helps!

类别

Help CenterFile Exchange 中查找有关 Naming Conventions 的更多信息

标签

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by