Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: S-function builder / problem
Replies: 5   Last Post: Jun 18, 2013 12:08 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Phil Goddard

Posts: 347
Registered: 1/27/12
Re: S-function builder / problem
Posted: Jun 6, 2013 3:05 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


> Could you explain me the correct way for calling them and is the definition of the external functions done with copying the given snippet into "Libraries/External function declarations" in the same form how it is at the moment?
>


It sounds as if you need to spend some time studying C.
Learn what the extern definition does, and how to call external libraries from C-code.

In your case the S-Function acts as a wrapper for converting the C syntax that Simulink expects/uses to that expected/used by your library.
That conversion is done in C and you need to have a good understanding of how to do it before writing the wrapper S-Function.

Phil.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.