LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Seting up labview as remote OPC client

Solved!
Go to solution

You can try using Network Published Shared Variables:

 

a) In PC-A install kepserver and SVE with Variable1 linked to a Kepserver point

 

b) In  PC-B install SVE, with datasocket read vía \\PC-A\Variable1

 

 I think this would help you

0 Kudos
Message 11 of 21
(4,578 Views)
It would make life very easy if I could do that, but unfortunatly I would rather avoid adding an extra layer onto the server.  Trying to do this the proper way, not necessarily the best way.  Thanks for the suggestion though.
0 Kudos
Message 12 of 21
(4,570 Views)

Hey Kevin,

 

Sorry about all you r problems, windows DCOM can be more than frustating at times. Based on your last couple of posts I have been researching security on the Kepware OPC more closely. I would like to go through the following two kepware knowledge bases as both will shed some light into what is going on:

 

KEPServerEX: Non-Administrative Users Unable to Make a Remote OPC Connections to the Server 

 

and

 

KEPServerEX: Unable to Connect with Remote OPC Client

 

Please let us if this solves your problem. Good Luck!!

Joe Daily
National Instruments
Applications Engineer

may the G be with you ....
0 Kudos
Message 13 of 21
(4,554 Views)
Solution
Accepted by topic author kevin.brown

Solved!

 

I'm using a workgroup to accomplish this setup. As I explain this, I will have three computers with three user names; OPCServer, OPC1, OPC2.

 

1. Each computer should have all of the users on them.  They all need to be password protected and each computer needs to have a user with the appropriate password.  Each computer needs to belong to the same workgroup.

2. Create user group named opcusers, put all users in that group.
3. DCOM setup
http://www.automatedsolutions.com/technotes/opcserverconnectivity/Default.asp#DCOM Step 1
    a. Set Default dcom security to include opcsusers.  Allow local and remote access.  Everyone does not include the opcusers group.
    b. default connection should be connect and identify
    c. Set all server components to default security and connections
4.  On Labview client, open up services and click logon tab.  Change the login to login as the server user and its password
5.  set simple file sharing off (tools -> folder options -> view)
6. restart computers

 

Thanks to everyone for the help.

0 Kudos
Message 14 of 21
(4,532 Views)

I were fighting with same problem. I used LV as OPC client and Kepserver as a OPC server. I was able to connet with Matrikon OPC client but not with LV OPC client. I solved this by right clicking Kepserver icon ->OPC UA configuration -> Server endpoints and remove enable selection.

 

This is a new parameter in Kepserver5.X version. I don't know any details about it but it works in my case.

 

BR, Jim

0 Kudos
Message 15 of 21
(3,932 Views)

Hi.

I'm encountering the same kind of problem today with LV2015.

I'd like to apply the same solution than you, but there are some poitns that I don't get.

 

For 3., the link isn't valid anymore. Do you have another one that would work?

Step 3.c. Should be done in dcom in the same pop up than a. and b. ?

Step 4., what does this refer to? Is it within LabVIEW? In Windows services ?

 

Thank you!

0 Kudos
Message 16 of 21
(3,234 Views)

Hi Jonzarwal,

 

Our community guidelines recommend not posting to a thread this old and instead creating a new thread for visibility.

 

That said, here is a link to a different DCOM configuration document that you may find helpful: http://www-ad.fnal.gov/controls/opc/Using_OPC_via_DCOM_with_XP_SP2_v1.10.pdf

 

I think the LabVIEW services window kevin.brown is referring to is configuration within the OPC tool, not LabVIEW itself or Windows services.

Regards,
Kelly B.

National Instruments
0 Kudos
Message 17 of 21
(3,200 Views)

Hello, 

I'm working on a application with an OPC server. I'm using Kepserver to make communicaction between PLC(Omron) and the server. This communication works fine. I have to configure DCOM.

Now, I want to use Labview like a client for OPC server. I want to configure remote access from Labview.

Later, inside my project I've created a New I/O Server and I search the path from Kepware OPC server.

On my new project, I created some variables and I drag it to my VI.

When I run my VI, I can see that a green triangle near my variable, but it doesn't update my variables on Kepware.

What it doesn´t well?

 

Thanks for all.

 

Can anybody help me. 

0 Kudos
Message 18 of 21
(2,800 Views)

Hi GPS86,

 

I have a few questions we can use to troubleshoot:

 

1. When you set up the I/O server, did you select tags by browsing to them on the OPC Server?

2. After you set up the I/O server, did you deploy the library to your host computer?

3. Are you reading or writing variables with your OPC client?

3. Could you please post the block diagram for your code? 

 

It looks like the front panel controls are updating with values, so being able to see the block diagram will allow us to see how you're writing to the server. It's also worth mentioning that this thread is very old, and you may get more responses from users if you post a new thread with your question.

 

Austin
Staff Software Engineer
NI
0 Kudos
Message 19 of 21
(2,788 Views)

First, I browsed the path for the server where is intalled Kepserver.

Second, I selected tags on the library, and later deploy this tags.

when I drop this tags on my VI and I run continiously, I can't read or write my variables.

0 Kudos
Message 20 of 21
(2,779 Views)