Simulink and C++ program cosimulation
5 ビュー (過去 30 日間)
古いコメントを表示
Hello, I have an application written in C++ (VC) which is event trigged program and I want to couple it with a plant model made in simulink. The challenge is that the C++ program should transmit an input to the plant (to simulink) and receive an output back in steady intervals (from simulink). Depending on the output the input can be modified by C++ program. Simulink and C++ program should work simultaneously and exchange data. Is it possible? Thanks in advance for any answers.
0 件のコメント
採用された回答
Kaustubha Govind
2011 年 8 月 3 日
Yes, you can create a C++ S-function block and use your C++ as if it were any other block in your Simulink model.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Simulink Functions についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!