How can I stop the execution of a Matlab generated DLL with an external command?

8 ビュー (過去 30 日間)
Fotios Kontomichos
Fotios Kontomichos 2020 年 12 月 22 日
回答済み: Martijn 2021 年 1 月 13 日
I have written a function in Matlab that takes some time to conclude computation. Most time is spent in required nested loops.
This function is converted in a DLL via Compiler SDK and is controlled with a C# front-end. I was wondering if it's even possible to:
  1. Add a "Stop" button to the C# front-end in order to communicate and stop the DLL execution.
  2. Monitor somehow the remaining computation time of the DLL in order to be shown in the front-end. It can be either a time or percentage estimation and it doesn't have to be extremely accurate.
If the features mentioned above can be supported by a Matlab generated DLL, my question is what additions are required in Matlab code to achieve them. An example answer can be based on a simple function executing a for-loop.

採用された回答

Martijn
Martijn 2021 年 1 月 13 日
Please see the following article:
https://www.mathworks.com/matlabcentral/answers/126050-how-can-i-create-event-like-behavior-when-working-with-matlab-builder-ne-net-assemblies

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Coder についてさらに検索

タグ

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by