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

5 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by