Is it possible to compile a simulink model which includes an external s-function (mexw32) with real time workshop?

1 view (last 30 days)
Hello,
I'd like to compile a simulink model with Real-Time Workshop in order to generate a rapid simulation target. The simulink model contains an external created s-funtion (mexw32 file) which was created with MS Visual Studio 2010. I have neither source files nor object files for this s-function. After starting the buildprocess from MATLAB the linker tries to link an objectfile which I do not have.
LINK : fatal error LNK1181: Eingabedatei "external_sfun.obj" kann nicht geöffnet werden.

Answers (1)

Kaustubha Govind
Kaustubha Govind on 4 Apr 2014
I think you need to at least have a TLC-file for the S-function to generate an RSIM target. If you have the source code, I think you can still generate code with support for non-inlined S-functions turned on. You might want to contact the vendor and obtain a TLC-file.

Community Treasure Hunt

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

Start Hunting!