LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot start DCOM Server on remote machine with CVI Client

Hello

I need to start an ActiveX server on a remote machine with DCOM. But the method to start an object of that server opens it always on the local machine, even with the correct IP Settings for the remote machine.
The DCOM Settings in dcomcnfg shoulb be OK, because with a VisualBasic example it works well.

I,ve tried it with the mehtods of the ActiveX wizard and with the ActiveX library functions, always with the same result.

Any help would be fine
Thanks in advance

Oliver
0 Kudos
Message 1 of 3
(3,302 Views)
Oliver,

Does the server you attempt to open with DCOM always come up on the machine you try to launch from? Are there any error conditions reported from the function you attempt to launch the server? Have you checked the IP address to confirm it is the correct one for the remote machine?

Daniel McChane
Application Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,302 Views)
Hallo Daniel

Yes, the server always comes up on the local machine without any error conditions. The IP Address an other DCOM Settings seems to be correct, because with an VBA Example it works.

Here is my CVI Code:

----
const IID iidMData = {0x8A72AC83,0x1D21,0x11D5,0x8F,0x8C,0x0,0x50,0x4,0xA,0x48,0x62};

CA_InitActiveXThreadStyleForCurrentThread (0, COINIT_APARTMENTTHREADED);

error = CA_CreateObjectByProgIdEx("VLWDCom.LaserChromatron", "192.168.1.19", &iidMData, 1, LOCALE_NEUTRAL, 0, &xmLaser);
---

and thats the working VBA Code
---
Sub Laser()
Dim xLaser As LaserTemplateLib.CoLaserTemplate

Set xLaser = CreateObject("VLWDCom.LaserChromatron", "192.168.1.19")
xLaser.Reset
End Sub
---

I,ve got no idea whats going wrong.

Thanks
in advance
Oliver
0 Kudos
Message 3 of 3
(3,302 Views)