How can I invoke C++ executable file (.exe) from Matlab code or Simulink?
古いコメントを表示
I am trying to run a C++ executable file (.exe) from matlab or Simulink. Currently I have to run the ++ executable file (.exe) manually and start the simulation in matlab environment to start the data exchange between matlab and C++ code. Is there any easier way to automate the process? Eg- I can just run matlab/Simulink and the C++ executable file (.exe) is invoked.
Operating system - Windows10
Matlab - 2017a/b
User Datagram Protocol (UDP) is used between matlab and C++
5 件のコメント
Honghao Tan
2020 年 8 月 20 日
@Rutwesh, is it in the window 10 environment or Linux? what is the protocol between matlab and C++?
Walter Roberson
2020 年 8 月 20 日
.exe is Windows and not Linux, not unless a windows emulator such as Wine has been added to the Linux.
Walter Roberson
2020 年 8 月 20 日
system('TheProgram.exe &')
Or use .Net System.Diagnostic.Process
Honghao Tan
2020 年 8 月 20 日
@Walter, thx for your comment on .exe
Rutwesh Shirbhate
2020 年 8 月 21 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で External Language Interfaces についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!