How can I make a DCOM Server instance of MATLAB visible?

5 visualizaciones (últimos 30 días)
From my local Machine 1, I am starting an instance of MATLAB on a remote Machine 2 using DCOM. However, the instance does not display graphics on the remote display. I would like to do so.
I am using another instance of MATLAB on my local Machine 1 as the DCOM Client.

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 27 de Jun. de 2009
DCOM allows programs executing as the Interactive User to display graphics. To make MATLAB visible on the remote Machine 2, you can configure MATLAB to execute as the Interactive User as follows:
1. On Machine 2, start the DCOM Configuration utility by selecting "Start->Control Panels->Administrative Services->Component Services".
2. Select "Component Services->Computers->My Computer->DCOM Config".
3. Right-click the appropriate "Matlab.Application" line and select "Properties". For MATLAB 7.0 (R14) to MATLAB 7.3 (R2006b), select "Matlab.Application (Version 7.0)".
4. Click the "Identity" tab and select "Interactive User". Click "OK".
Now you can start MATLAB from a local MATLAB session, and make it visible:
h = activexserver('matlab.application','machine2')
h.Visible = 1
h.Execute('plot(1:10)')

Más respuestas (0)

Categorías

Más información sobre Programming en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by