S-Function Builder - Problems in the compilation of routines in C.
4 次查看(过去 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.
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!