フィルターのクリア

Why am I getting the following error while trying to generate an S-Function from a submodel?

2 ビュー (過去 30 日間)
Chirag
Chirag 2024 年 4 月 18 日
編集済み: KALASH 2024 年 5 月 24 日
It appears to me that the compiler fails to generate the following file. I unfortunately do not understand the underlying issue.

回答 (1 件)

Yatharth
Yatharth 2024 年 5 月 24 日
Hi Chriag,
The error you're encountering, "fatal error: rt_zcfcn.h: No such file or directory," during the S-Function generation from a submodel, is typically due to the build process not being able to find the specified header file (rt_zcfcn.h). This file is associated with the zero-crossing functionality within Simulink models, particularly when certain blocks that require zero-crossing detection are used.
If you are using a triggered subsystem or blocks or features that require zero-crossing detection, try removing it and see if the issue is resolved.
Attaching a reference example for you
and Documentation for Zero-crossing detection
In case you still face any issue I would suggest contacting the MathWorks support as the debugging might require you to share your model.

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by