Open dedicated automation servers from Labview

4 次查看(过去 30 天)
Hi,
I need to open multiple dedicated automation server sessions from a Labview program. I can use the IMLApp and DIMLApp interfaces in Labview, but it seems they both start a shared automation server. I found a post from 2009 that stated these interfaces do not support dedicated mode, but that's three years ago and surely there's a better solution now.) How can I start dedicated automation servers using COM or .NET?
Thanks! Ulf

回答(1 个)

Kaustubha Govind
Kaustubha Govind 2012-6-25
Not sure about IMLApp and DIMLApp, but if you started MATLAB as a COM Server manually, would you not have full control over whether it should be shared or dedicated?
  2 个评论
Ulf Knoblich
Ulf Knoblich 2012-6-25
What do you mean by starting it as a COM sever manually? Do you mean the "/automation" command line option? As far as I can tell that always starts a shared server, which would make sense, since a dedicated server is only for whichever process opens it, so no other process could connect to it after the fact?
Kaustubha Govind
Kaustubha Govind 2012-6-26
Ah! I see. I don't have any experience with COM servers, but I meant the equivalent of the "actxserver" MATLAB command which is used to start a COM server. Is there a way to start any application as a COM server with multiple (non-shared) instances. If you know that this is possible with any application (ie., not a COM limitation), then we might be able to figure out a way to make it work for MATLAB.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Use COM Objects in MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by