I have an Kepware OPC server (V4.270) on a Windows Server 2003 machine. On the same local network I have another PC runnings Windows XP SP2 with LabVIEW 8.2.1 installed. I also have Kepware's Quick Client OPC client software installed on this same machine. The Kepware Quick Client application can browse the server and read/write to the OPC server no problem.
However, when I do a simple LV VI to test my connection to the server, I can browse to the OPC server using Datasocket Select URL.vi and pass that tag to Datasocket Read.vi, but I get error code -2147220990 when I do the read (no discription on this error).
On the PC I'm logged in with the same user name and password as the server. I've also got another log in on the PC that's been authorized on the server's DCOM settings and when I run my Datasocket read logged in this way, I get the same thing except the error code is now -2147483643.
So, basically, the Kepware client works with no problems, the Datasocket Select URL.vi can browse to the server, yet I can not read from the server tag.
I have a feeling it's some sort of authorization that the Kepware client has that the Datasockets does not, but I the things that I've tried don't fixe the problem.
The things I've tried are:
- Enable all users access to remote dcom access on the server and the PC
- Tried changing the login on the NI Shared Variable Engine to use the current login
- Logged in on the PC with the same user name and pasword as the server
- Swore at BOTH the PC AND server (this at least made me feel better)
Any thoughts would be appreciated!!