- Open MATLAB.
- In the MATLAB Command Window, type the following command:
Unable to use simulink compiler to export FMU model
1 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(1 个)
Yash
2023-8-29
编辑:Yash
2023-8-29
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:
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
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Create Standalone FMU 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!