Using c-code s-function for dspace TLC
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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,
0 comentarios
Respuestas (1)
Rangan M K
el 15 de Abr. de 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.
0 comentarios
Ver también
Categorías
Más información sobre Embedded Coder en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!