Using c-code s-function for dspace TLC

7 次查看(过去 30 天)
Hello I have a s-function created from C code (lets call it SSS). This S-function was created by compiling C code using MS Visual Studio. I am using this s-function, in a larger system (lets call it "X"). I am able to simulate this system. Now, I want to generate code for the subsystem "X" using Embedded coder dspace TLC: "rti1401.tlc". Although I am able to simulate, I am not able to generate the SDF for porting on micro-autobox. After code generation and compiling the C files, there is an error from OPUS Make: OPUS MAKE: Don't know how to make 'SSS.o03'. Stop.
Is it possible to use Visual-studio-compiled c-code s-function for creating dspace based control system? Is there a problem with TLC?
Thanks in advance for your help,

回答(1 个)

Rangan M K
Rangan M K 2016-4-15
Basically this error comes when the the s function name is xyz and you try to build the model. But matlab cannot find xyz.c in the search path. As you have said you have generated s-function from visual studio.Your xyz.c file might not be there . To solve this add a xyz.c dummy file in current directory. But make sure all your .c files are included in custom code option in RTW and the path is listed in the custom code search directories.

类别

Help CenterFile Exchange 中查找有关 Embedded Coder 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by