Error On Storage Class

조회 수: 3 (최근 30일)
Annu
Annu 2025년 6월 11일
댓글: Annu 2025년 6월 16일
Error using tlc_c The model 'SWC_Main' has a subsystem block 'SWCMainProcs' which contains a block () that has a '_VAR_SWC_VAR_CLEARED_16' storage class registered with it. The storage class is unstructured. Data inside of 'Variant Subsystem' or 'For Each Subsystem' cannot be unstructured.
How to fix this error.

채택된 답변

Jaskirat
Jaskirat 2025년 6월 13일
Hello @Annu,
I understand you are facing an error regarding storage class.
The error message you are getting seems to indicate you have a signal or parameter (which becomes _VAR_SWC_VAR_CLEARED_16 during code generation') inside a Variant or For-Each Subsystem that is assigned an unstructured storage class such as “ExportedGlobal” or “ImportedExtern”.
Switching the storage class to a structured type such as Struct or moving the data outside the Variant/For-Each Subsystem should help resolve the issue.
The following documentation link provides more information on choosing storage classes:
Hope this helps!
  댓글 수: 1
Annu
Annu 2025년 6월 16일
Yes,After moving the data to outside the For-Each Subsytem,the issue got resolved.Thanks

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Messages에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by