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: Simulink, RTWEC and a Microcontroller
Replies: 1   Last Post: Dec 11, 2012 11:44 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: 342
Registered: 1/27/12
Re: Simulink, RTWEC and a Microcontroller
Posted: Dec 11, 2012 11:44 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

You typically have to encapsulate your device drivers (i.e. the C-code that you have) into c-mex S-functions, and since you're using ERT you'll also want to write associated TLC files for them.
Neither are trivial, but they are (moderately well) documented.
http://www.mathworks.com/help/simulink/host-specific-code.html

Also, depending on how far you want to go, you could consider writing a custom target:
http://www.mathworks.com/help/ecoder/target-extensions.html

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.