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

5 visualizaciones (últimos 30 días)
JuanMa
JuanMa el 13 de Dic. de 2024
Comentada: JuanMa el 16 de Dic. de 2024
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

Respuestas (1)

Saurabh
Saurabh el 16 de Dic. de 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.

Categorías

Más información sobre Block and Blockset Authoring en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by