Export Model as FMU with Linux Binary on Windows
显示 更早的评论
Hello Mathwork team:
I would like to export FMU according this documnent(Export Model as FMU with Linux Binary on Windows - MATLAB & Simulink - MathWorks China) .
but after I try generate FMU model, a error happened. it tell me “Failed to setup the environment. WSL must be at least version '2.0.9.0'. ”. Then I have check my WSL verison. it shows my WSL version is 2.2.4.0. and I have run WSL --update and try to update the version of WSL, but it tell me my WSL version is the latest one.
so I think my WSL is the latest one, but why simulink still reminde me that my WSL version is not ok? can you help me to solve it.
matlab verstion: 2024a update 4
FMU builder version: 24.1.1
thank you
2 个评论
Umar
2024-6-30
Hi Wen li,
To address the issue with the WSL version error in MATLAB when exporting an FMU model, ensure that the WSL version is correctly recognized by MATLAB. Sometimes, even though the WSL version is up to date, MATLAB may not detect it accurately.
One workaround is to manually set the WSL version in MATLAB by modifying the system environment variables. You can try setting the WSL version to '2.0.9.0' explicitly in the system settings to see if MATLAB recognizes it correctly.
Hope that answers your question.
wen li
2024-7-1
采纳的回答
更多回答(1 个)
Umar
2024-7-3
0 个投票
Hi Wen,
Analyzing your error message, the assertion failure typically occurs when a condition that should be true at a particular point in the code is false. In this case, the assertion failure might be due to a discrepancy or inconsistency in the code or the settings related to FMU generation.
类别
在 帮助中心 和 File Exchange 中查找有关 Create Standalone FMU 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!