LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating DCOM object of a VI in MATLAB fails

Hi,

 

I've been trying to remotely control a LabVIEW VI within MATLAB from another PC.

 

My specifications are as follows: I use LabVIEW Base Development System 8.6.1 and Windows XP Pro on both computers.

 

I used the application builder from LabVIEW to create an executable file of my VI and an installer to install it on both computers. Of course I checked the two for ActiveX relevant checkboxes "Enable ActiveX Server" in the "Advanced" tab in the executable build and the "Register COM" in the "Source File Settings" in the installer build. 

 

When I try to create a DCOM object in MATLAB, I get the following error:

 

>> lab2 =actxserver('Dummy.Application','192.168.0.2')
??? Error using ==> actxserver
Server Creation Failed: Access denied

 

Dummy.Application is the progID of my VI and 192.168.0.2 the IP of the server computer.

 

In the system log in the event viewer I get 

 

Event ID: 10006.

Description: DCOM got error "General access denied error " from the computer 192.168.0.2 when attempting to activate the server {82417BDE-2542-41FE-A2D7-A372EBA55A60}

 

where {82417BDE-2542-41FE-A2D7-A372EBA55A60} is the application ID of my VI.

 

Interestingly enough I manage to start other programs on the other computer such as the internet explore, but it doesn't work with my VI, although I use exactly the same settings in the DCOM configuration in the system administration (Start->Execute "dcomcnfg". So I think it is a problem of LabVIEW, i.e. my VI, and not a problem of the DCOM settings of the two computers. What is confusing me is, that I manage to start the VI via ActiveX on the same computer, i.e. the computer with MATLAB.

 

Any advice would be highly appreciated. Thank you.

 

Regards,

 

Ralph

0 Kudos
Message 1 of 1
(3,398 Views)