LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

remote opc c++ dll

Solved!
Go to solution

Hello,

I use a OPC Server (with Data Access 3.0) and I try to develop a Labview OPC Client application on Windows Vista.

 

I also use a C++ DLL where all the OPC client activities are done!

 

Everything works fine if I use this OPC-Client DLL from a Windows C++ Console Application , so I think all the DCOM settings and other settings are fine.

 

But if I try to connect and read an OPC item of the remote OPC Server with Labview and the "Call Function Library Node" then it's not possible to connect the DA-Session with the DA item!

 

Can anyone help me? Is there a Windows setting for Labview.exe necessary?

 

Local OPC Server work fine (also with Labview).

 

Thanks

Hans 

0 Kudos
Message 1 of 3
(3,134 Views)
Solution
Accepted by daHans

I've solved the problem(s)!!!!!!

 

Problems:

- Labview -> Data Socket -> local OPC Server : OK, Remote OPC: Error

- .NET or ActiveX OPC Client Toolbox mit Labview: local OPC Server : OK, Remote OPC: Error

 

Solution:

Add line "ole.AuthnLevel = 1" to the LabVIEW.ini file.  ( C:\Programme\National Instruments\LabVIEW 8.6\LabVIEW.ini)

 

Now it works!

Hans

Message 2 of 3
(3,109 Views)

Hello,

Don't forget to add this line also to the ini-File of your Application!

http://zone.ni.com/reference/en-XX/help/370052K-01/tsref/infotopics/sync_objects_local_dcom/

 

0 Kudos
Message 3 of 3
(2,410 Views)