From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

OPC Server Connection not possible (with LabView 7.0 it is working)

We have used LabView 7.0 to view OPC items on a remote server (Windows CE).
On WindowsCE it's not possible to browse the remote registry, therefore we
make the registry settings on the client Computer and are setting the
"RemoteServerName". For LabView 7.0 it was working.
With LabView 7.1 when we try the same with the sample "Browse to OPC Item.vi"
we get the Message Box "NI Network Browser Error!" "This OPC Server does not support
the interface: IOPCBrowseServerAddressSpace error code - 0x80070005 Access denied!"
Has any one an idea what has changed since LabView 7.0.
The OPC Server has also an OPCEnum running. Is there any way to read this information?

Here are the whole registry setting for the local machine to connet to remot OPC-Server:

REGEDIT4

[HKEY_CLASSES_ROOT\AppID\{4841A238-5E78-48AB-A9ED-666AD68F4841}]
@="Inficon Quadrupol Massenspektrometer DA"
"AuthenticationLevel"=dword:00000000
"RemoteServerName"="192.168.0.206"

[HKEY_CLASSES_ROOT\Inficon.Quadrupol.Massenspektrometer.DA]
@="Inficon Quadrupol Massenspektrometer DA"

[HKEY_CLASSES_ROOT\Inficon.Quadrupol.Massenspektrometer.DA\CLSID]
@="{4841A238-5E78-48AB-A9ED-666AD68F4841}"

[HKEY_CLASSES_ROOT\Inficon.Quadrupol.Massenspektrometer.DA\OPC]

[HKEY_CLASSES_ROOT\Inficon.Quadrupol.Massenspektrometer.DA\OPC\Vendor]
@="Inficon"

[HKEY_CLASSES_ROOT\CLSID\{4841A238-5E78-48AB-A9ED-666AD68F4841}]
@="Inficon Quadrupol Massenspektrometer DA"
"AppID"="{4841A238-5E78-48AB-A9ED-666AD68F4841}"

[HKEY_CLASSES_ROOT\CLSID\{4841A238-5E78-48AB-A9ED-666AD68F4841}\Implemented Categories]

[HKEY_CLASSES_ROOT\CLSID\{4841A238-5E78-48AB-A9ED-666AD68F4841}\Implemented Categories\{63D5F432-CFE4-11D1-B2C8-0060083BA1FB}]

[HKEY_CLASSES_ROOT\CLSID\{4841A238-5E78-48AB-A9ED-666AD68F4841}\Implemented Categories\{CC603642-66D7-48F1-B69A-B625E73652D7}]

[HKEY_CLASSES_ROOT\CLSID\{4841A238-5E78-48AB-A9ED-666AD68F4841}\ProgID]
@="Inficon.Quadrupol.Massenspektrometer.DA"

[HKEY_CLASSES_ROOT\CLSID\{4841A238-5E78-48AB-A9ED-666AD68F4841}\VersionIndependentProgID]
@="Inficon.Quadrupol.Massenspektrometer.DA"

Regards, Robert
0 Kudos
Message 1 of 6
(3,708 Views)
Hi Robert

Unfortunately I can't help you directly but I
have posted your problem to our developer.

I will answer you as soon as I have more informations.

regards

Manuel Wielander
National Instruments

Message Edited by ManuelW on 05-25-2005 06:47 AM

0 Kudos
Message 2 of 6
(3,675 Views)
Hi Robert


LabVIEW 7.1 implements some new security features dealing with DCOM that were not in 7.0. Windows is moving in this direction, and National Instruments decided to follow suit. 7.1 requires a certain level of authentication from the server. If this is the issue in your case, it can be resolved with the following steps (this is for Windows XP; CE will probably be different):

1. On the computer hosting your OPC server select "Start >> Settings >> Control Panel >> Administrative Tools >> Component Services.
2. On the tree on the left, expand "Component Services >> Computers >> My Computer >> DCOM Config.
3. Your OPC server should be registered as one of these items. Right-click on your server and select "Properties."
4. On the "General" tab, change the "Authentication Level" to "Connect."

If this property is already set to Connect or Default (and the default setting is Connect) then this will have no effect.

You can also try checking some of the other settings:

1. On the computer hosting your OPC server select "Start >> Settings >> Control Panel >> Administrative Tools >> Component Services.
2. On the tree on the left, expand "Component Services >> Computers >> My Computer
3. Right-click on My Computer and select "Properties."
4. On the "Default Properties" tab, make sure "Default Impersonation Level" is set to "Identify."

You may also want to look at the "COM Security" tab to make sure your computer has the right permissions.

If all else fails, you can try adding the line "ole.AuthnLevel = 1" to the LabVIEW.ini file. This should reverse some of the changes to 7.1.

regards

Manuel Wielander
National Instruments
0 Kudos
Message 3 of 6
(3,662 Views)
Hi

I've tried nearly every DCOM-configuration to connect LabVIEW 7.1 with our OPC Server an a Windows CE machine. I set the "authentication level" to "connect", the "impersonation level" to "identify". LabView 7.1 always says:
"This OPC Server does not support the interface IOPCBrowserServerAddressSpace, errorcode - 0x80070005, Access denied"

The only thing that works is to add "ole.AuthnLevel=1" to LabVIEW.ini, but I want to do it on the server-side.

Can you help me? Do you know a OPC server on Windwows CE that works with LabVIEW 7.1, I think it is not possible!

regards

Rainer Weg
Kinz Elektronik
0 Kudos
Message 4 of 6
(3,627 Views)

Hi,

Try to install a Matrikon Server/client free download test applicaation.

During installation the program can set the correct registry for you.

 

Wouter

 

Have program a realtime simulator for powerplants written in C++.I translates the RT sim to NI components and software (Labview).


My rt pxi turbine simulator for simulating grid incidents was succesfully used in a nuclear plant in 2006.

Look at http://sine.ni.com/cs/app/doc/p/id/cs-755
0 Kudos
Message 6 of 6
(3,554 Views)