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

3 visualizaciones (últimos 30 días)
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.

Respuestas (1)

Kaustubha Govind
Kaustubha Govind el 22 de Jul. de 2011
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.

Categorías

Más información sobre Simulink Coder en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by