Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
How to creat a S function from a .mdl file/model?

Subject: How to creat a S function from a .mdl file/model?

From: Tomaz

Date: 5 Apr, 2013 06:56:05

Message: 1 of 2

Hi everyone.
How do I create an S function from an .mdl Simulink model? I would like to create an S function to protect my “knowhow” in my .mdl files. I’m using complex standalone .mdl models with gui mask and many subsystems without any m code form matlab. Is it possible to create such a S function that the final user can use only the gui mask and the Run button without the possibility to see how the model is built?
I already tried with Help, without success. It wasn’t really helpful :(
Are there any other possibilities to protect my knowhow in my mdl’s?
I’m new to S functions, but more or less expert in Simulink.
Examples would be welcome :)

Thanks to all!

Subject: How to creat a S function from a .mdl file/model?

From: Phil Goddard

Date: 5 Apr, 2013 17:29:06

Message: 2 of 2

There are two ways to hide the implementation -- both require the Simulink Coder.

One is to create a protected model:
(http://www.mathworks.com/help/simulink/ug/protecting-referenced-models.html)

The other is to create an S-function using the Simulink Coder S-Function Target.

Phil.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us