How can I get multiple outputs out of my S-Function, not only state x?

2 views (last 30 days)
Hey,
I'm trying to build a S-Function with multiple outputs. Maybe outport is a better description.
Right now I'm using the normal S-Function block. I implemented my differential equations and when I just want to get the integrated states as a output everything works fine. Now I want to calculate more than the stats in the S-Function. Another variable which shouldn't be interated but also seen in the output. I tried hard but could find a solution.
Do I have to use the Level 2 Block?
Many Thanks,
Manuel

Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!