.net Using a complex Simulink model as a realistic real time simulation
10 ビュー (過去 30 日間)
古いコメントを表示
I am developing a .net software (C# or C++) that will use a complex Simulink model of a motor to do realistic simulations. I have just started looking in to this and would need some pointers of which direction to go.
The software will have basic inputs like throttle, brake and gear. These values need to be sent to a running simulation and the values for speed, rpm etc needs to be read from the model and presented in the software.
I have successfully been able to use the MLapp com object to start simulation and change values. But it is to slow (it will take about a second to change a value) and I have figured out have to read values yet.
I read somewhere that the model can be compiled to C code and used as a dll. How do I do that? Is that the right way to go?
/J
0 件のコメント
採用された回答
TAB
2012 年 6 月 12 日
You can generate the shared library (dll) from your model. For that you need two more products Simulink Coder (Real time workshop) and Embedded coder. If you have these products, you can generate DLL by selecting ert_shrlib.tlc target.
For more information see
0 件のコメント
その他の回答 (0 件)
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!