Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

opc server license

Hi all,

I've a problem with NI OPC Server 2012 license.

 

I've installed the evaluation version (my customer has the full license but I want to do some test) and I'm trying to comunicate with it in my c# application through datasocket.

 

Once I try to connect I recive a "Not licensed" exception. I'm doing something wrong? I need the full version to test my environment? or it's never possible to comunicate with NI OPC Server through c#?

 

Thank you

0 Kudos
Message 1 of 10
(7,632 Views)

Hi Alex,

 

the evaluation version of OPC Server doesn't have limitations.

The only difference between that version and the full one is that it works for the free trial period.

 

Bye

 

FBM

0 Kudos
Message 2 of 10
(7,619 Views)

Thank you FatBoyMonchi for your answer.

 

This is the error I recieve:

 

OPCError.png

 

I recive this error when I try to browse the OPC from the datasocket browser.

I get this error also when I try to connect to OPC server through OPCNetAPI.

There is something wrong? I suppose I can connect in both ways.

 

Thank you.

0 Kudos
Message 3 of 10
(7,614 Views)

Hi Alex,

 

when the evaluation licence of OPC Server 2012 is supposed to expire?

Another thing to check is the version of LabVIEW you are using.

 

Thank you,

 

FBM

0 Kudos
Message 4 of 10
(7,608 Views)

The license manager says "Never Expire".

 

license.png

 

I've not installed LabView because I need only to test OPCServer connectivity from an external application.

 

Thank you very much.

0 Kudos
Message 5 of 10
(7,605 Views)

Hi Alex,

 

thank you for the screenshot.

In this kind of evaluation programs, you have limited time (2 hours a time) in wich programs works right: after 2 hours from the beginning the program stops working.

If you reboot the machine you'd see the program working right again for two hours.

In these two hours everything must be good, so if rebooting the machine, the OPC Server doesn't work right, maybe there's some trouble...I think in this case you can try to reinstall to see if it fixes the problem.

 

FBM

 

0 Kudos
Message 6 of 10
(7,597 Views)

I've uninstalled and reinstalled it several times and I get the error 5 minutes after the installation.

 

I think I can't understand something. It is possible doing what I'm trying to do? Accessing the OPC Server from datasocket or OPCNetAPI? There is some limitation (also in the full license)?

I need some other license besides the OPC Server?

 

Thank you very much for tour time.

0 Kudos
Message 7 of 10
(7,590 Views)

Hi Alex,

 

in order to see if the problem is made by the OPC Server, maybe we can verify if it's working right, using the app called OPC Quick Client.

This app was installed when you installed the OPC Server.

You can add a new server clicking the fourth button in the left: New Server,

in the next window you have to choose National Instruments NIOPCServers.V5, and click ok.

Clicking the right key of the mouse, and choosing Auto Create Tags, you'll se all the available tags in your OPC Server.

 

Please, let me know if it works right.

 

Thank you so much,

Have a nice day.

 

FBM

0 Kudos
Message 8 of 10
(7,576 Views)

The quick client work perfectly from the first time. Only datasocket and OPCNetApi don't work.

 

Thanks

0 Kudos
Message 9 of 10
(7,574 Views)

Ok,

 

so OPC Server is working right and the problem must be in the c# part of the project.

I don't have any c# command to pass you, but try to open with the notepad the .c file in the attachment of this page:

http://zone.ni.com/devzone/cda/epd/p/id/3773

 

Here you can find commands used with CVI to control datasocket and OPC Server: these commands are very similar to the c# ones.

 

Hope it's useful 

0 Kudos
Message 10 of 10
(7,572 Views)