S-Function Builder - Problems in the compilation of routines in C.
조회 수: 6 (최근 30일)
이전 댓글 표시
I am working on a simulation in Simulink using the S-Function Builder Block. I complete the programming, it compiles, and then Simulink automatically deletes the ______wrapper.c file.
In the Build Log, it informs me the following: Expression 'TMG100_Simulink_wrapper.c PSS2A_ini_function_sim main_TMG100_sim TMG100_2nd_order_signals_filter_sim TMG-100_First_order_signals_filter_sim TMG-100_Frequency_sim TMG100_TrueRMS_sim TMG-100_PSS2A_sim' for parameter 'SFunctionModules' in 'PSS_fmed_60Hz_3840Hz_C/TMS320F28335' cannot be evaluated.
In the folder where the routines included in the S-Function Builder block are located, I see, while Simulink is compiling, that it creates a .c file and the wrapper.c file and then deletes them.
What do I need to configure to fix this error?
Thank´s
댓글 수: 0
답변 (1개)
Saurabh
2024년 12월 16일
To ensure the "S-function" block can locate the "_wrapper.c" file, you must specify it in the "S-function modules" field of the block.
For more details on the "S-function modules" field, please refer to the documentation link below.
참고 항목
카테고리
Help Center 및 File Exchange에서 Block and Blockset Authoring에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!