S-Function Builder - Problems in the compilation of routines in C.

6 visualizzazioni (ultimi 30 giorni)
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

Risposte (1)

Saurabh
Saurabh il 16 Dic 2024
Hi @JuanMa,
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.

Categorie

Scopri di più su Block and Blockset Authoring in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by