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.
0 个评论
回答(1 个)
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.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!