Using c-code s-function for dspace TLC

15 ビュー (過去 30 日間)
Kaustubh Gandhi
Kaustubh Gandhi 2014 年 12 月 12 日
回答済み: Rangan M K 2016 年 4 月 15 日
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 Center および File ExchangeSimulink Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by