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

조회 수: 11 (최근 30일)
zx
zx 2024년 2월 27일
답변: Animesh 2024년 12월 31일
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일
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 CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by