Hi :) I am planning to call a simulation software with matlab and run some files which are in a folder with that software, change the setup of simulation with matlab code and save results. Is is possible? if yes how can I change setup ? Thanks a lot :) Fati

 採用された回答

ES
ES 2014 年 3 月 4 日

0 投票

If you want to run an external software, ActiveX is the best way. MATLAB makes a Component Object Model of whatever software you want to use, and its features(functions and parameters) are available as calls to APIs/CLIs. I have used it for a many external tools such as Excel, DeweSoft, CANalyzer etc..

4 件のコメント

Iain
Iain 2014 年 3 月 4 日
You can also use DDE methods (archaic).
You can also use command line interface (depending on where the software comes from).
You can also use the sim command, and get_obj/set_obj, if you are talking about simulink.
Fatemeh Nejat
Fatemeh Nejat 2014 年 3 月 4 日
Can you please giveme an example for each method? Thanks :)
ES
ES 2014 年 3 月 4 日
Can I please know What external application do you want to use?
Iain
Iain 2014 年 3 月 4 日
If you look at the code in xlswrite, you'll see a good example of the ActiveX method interfacing with excel.
Command line stuff uses commands that look like:
!dir "C:\Windows\"
I can't show you a good example of DDE methods, but the commands can be found as links from
doc ddeinit

サインインしてコメントする。

その他の回答 (1 件)

Primoz Rome
Primoz Rome 2020 年 8 月 3 日

0 投票

For DeweSoft you can use this ActiveX example available in our download center. For further questions you can also address our Developer portal.

カテゴリ

ヘルプ センター および File ExchangeUse COM Objects in MATLAB についてさらに検索

タグ

質問済み:

2014 年 3 月 4 日

回答済み:

2020 年 8 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by