Using c-code s-function for dspace TLC

5 visualizzazioni (ultimi 30 giorni)
Kaustubh Gandhi
Kaustubh Gandhi il 12 Dic 2014
Risposto: Rangan M K il 15 Apr 2016
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,

Risposte (1)

Rangan M K
Rangan M K il 15 Apr 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.

Categorie

Scopri di più su Simulink Coder in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by