Is it possible to generate C code from a S-function ?

Hello,
I try to transfer a model from simulink to another software. I want to transfer generate C code from a S-funciton, so I can incorporte this code into the other software.
Is this possible ? What is the way to go ?
Thanks !
Thomas

2 Comments

Do you have the C/C++ code that generated the S-function?
The documentation will generally include a section about the limitations of code generations for a specific function, so this page might provide some clues about where to look.
No I don't have this code, yet.

Sign in to comment.

Answers (1)

Hi,
The following link has details regarding the features and limitations of s-functions and might help you. Referring to the above suggested link might also help you.

Categories

Find more on Simulink Coder in Help Center and File Exchange

Asked:

on 22 Jun 2020

Community Treasure Hunt

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

Start Hunting!