Using c-code s-function for dspace TLC

7 vues (au cours des 30 derniers jours)
Kaustubh Gandhi
Kaustubh Gandhi le 12 Déc 2014
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,

Réponses (1)

Rangan M K
Rangan M K le 15 Avr 2016
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.

Catégories

En savoir plus sur Embedded Coder dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by