为什么我打开simu​link会报“Err​or:Unable to retrieve a Stateflow license.”

7 ビュー (過去 30 日間)
zx
zx 2024 年 2 月 27 日
回答済み: Animesh 2024 年 12 月 31 日 4:23
Error:Unable to retrieve a Stateflow license. Without a license, you can only load and simulate Stateflow example diagrams.一直可以正常使用,在我没有关闭的情况下,突然上周五显示这样的报错,我尝试了重装,没有解决这个问题

回答 (1 件)

Animesh
Animesh 2024 年 12 月 31 日 4:23
Hi @zx,
I have encountered a similar issue in the past while creating a custom Simulink library that contains models using both Stateflow and Simulink blocks. This issue is related to the licensing mechanism for Stateflow and Simulink.
You can address this by defining each component in its own library file and then creating another library that consolidates all the component libraries. This approach ensures that opening a block containing only Simulink components will not check out a Stateflow license.
Additionally, it is possible to simulate a disabled Stateflow license to verify how the custom library behaves when Stateflow is unavailable. Use the following MATLAB command:
>> license('checkout','stateflow','disable')
This ensures that the library functions as expected without relying on a Stateflow license.

カテゴリ

Help Center および File ExchangeBlock Libraries についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by