Info

此问题已关闭。 请重新打开它进行编辑或回答。

Using COM Servers As Workers

1 次查看(过去 30 天)
Phil
Phil 2011-8-18
关闭: MATLAB Answer Bot 2021-8-20
I would like to run one instance of matlab to launch some COM servers with both excel and matlab. My question is if it is possible to release the connection to the excel COM server or matlab COM server while scripts or macros are running and later return to it with the main matlab window to get the data. I want to use the main matlab to monitor the progress, but so far I havent been able to release from a running script.

回答(1 个)

Friedrich
Friedrich 2011-8-18
  1 个评论
Phil
Phil 2011-8-18
Thanks for your response. To be more specific, I load a matlab COM server. I then use .Execute to call a function that takes about 20 seconds to run. What I'd like to do is send the command to run the function, but regain control of matlab so i can do other stuff. Currently, the .Execute command makes matlab be busy for 20 seconds without regaining control until the COM function finishes.

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by