Tying Simulink Coder to the Simulink Model

I was curious if there was a way to directly send data to or get data from an "Inport" or "Outport" block from custom code written in a Simulink Coder block?
I'd like to use Simulink to create firmware for an embedded target, however, the Embedded Coder toolbox does not have support any of my embedded target's peripherals, hence I need to write custom C code to implement an interface to them.

 採用された回答

Kaustubha Govind
Kaustubha Govind 2012 年 2 月 22 日

0 投票

Yes, you can create your own device driver block to act as a source/sink. See http://www.mathworks.com/help/releases/R2011b/toolbox/rtw/ug/bsf7k8n-1.html

その他の回答 (1 件)

Matthew
Matthew 2012 年 2 月 22 日

0 投票

Thank you! This was exactly the information I needed.

カテゴリ

ヘルプ センター および File ExchangeDeployment, Integration, and Supported Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by