How to compile model and generate code using simulink coder through C# .Net application?

3 ビュー (過去 30 日間)
Sadanand
Sadanand 2011 年 7 月 22 日
I am developing .Net Application which uses Matlab for simulation. Is it possible to compile model and generate c++ code using simulink coder through my .Net application? I want to compile model n then use generated functions to simulate model through my .NET application. Thanks.

回答 (1 件)

Kaustubha Govind
Kaustubha Govind 2011 年 7 月 22 日
How are you interfacing with MATLAB from your .NET application? Are you invoking MATLAB as a COM Server? If yes, you can simply using the Simulink command-line interface and run them like any other MATLAB commands. The rtwbuild command will compile your model and generate code.
If you are using MATLAB Builder NE to compiler MATLAB code into .NET components, Simulink (and consequently code generation) is not supported in compiled code.

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by