Code covered by the BSD License  

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
ss2sf - Subsystem-to-S Function

3.0 | 1 rating Rate this file 13 Downloads (last 30 days) File Size: 1.33 KB File ID: #5846 Version: 1.1
image thumbnail

ss2sf - Subsystem-to-S Function


Cole Stephens (view profile)


07 Sep 2004 (Updated )

Convert a subsystem to an s-function via the MATLAB command line.

| Watch this File

File Information

Typically, you have to right-click on a subsystem, choose Real Time Workshop -> Generate S-Function in order to replace a standard Simulink subsystem with an S-function.

With ss2sf, you can provide a cell array of subsystem paths and the function will replace the specified subsystems with their s-function equivalents.

Required Products Simulink Coder
MATLAB release MATLAB 7 (R14)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
10 Apr 2007 Michael Bölling

This works fine when you don't use busses. When a bus is used you can get error messages like this:
'model/subsystem' must be connected to a Bus Creator, Bus Selector or a block that outputs a bus using a bus object. It can also be connected to bus capable blocks that meet the conditions for supporting buses provided the bus entering the block has been created by using a bus creator.

The internal S-Function Generator works somehow different. It seems to split the bus signals into single signals. An information how that works would be appreciated.

20 Oct 2010 1.1

Added License Info.

Contact us