Unable to use simulink compiler to export FMU model

2 visualizaciones (últimos 30 días)
xin yang
xin yang el 2 de Abr. de 2020
Editada: Yash el 29 de Ag. de 2023
I`m using the matlab 2020a, for tring to use simulink complier.
But when I followed the help to use the exportToFMU2CS('vdp'), the matlab shows "Unable to check out the Simulink Compiler license which is required to generate FMU target".
I have tried to reinstall the matlab 2020a but it sitll cannot work. What should I do to fix it?

Respuestas (1)

Yash
Yash el 29 de Ag. de 2023
Editada: Yash el 29 de Ag. de 2023
To check if you have a license for Simulink Compiler in MATLAB, you can use the license function along with the product identifier for Simulink Compiler. Here's how you can do it:
  1. Open MATLAB.
  2. In the MATLAB Command Window, type the following command:
license('test', 'Simulink_Compiler')
This command will check if you have a valid license for Simulink Compiler. If you have a valid license, MATLAB will return 1 (true), indicating that the license is available. If you don't have a license, it will return 0 (false).
Additionally you can also make use of the ver function to display information about installed toolbox versions. When you add the -support flag to the ver function, it provides additional information about the support status of the installed toolboxes. This can be particularly useful for ensuring that you have the necessary support and compatibility for your toolboxes. Here's how to use ver -support:
ver -support
When you run this command in MATLAB, it will display a list of installed toolboxes along with information about their support status. The support status can include details about whether the toolbox is actively supported, whether it's compatible with your MATLAB version, and any additional notes or comments related to support.
I hope this helps

Categorías

Más información sobre Create Standalone FMU en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by