09-19-2012 11:43 AM
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
09-21-2012 02:58 AM
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
09-21-2012 03:53 AM
Thank you FatBoyMonchi for your answer.
This is the error I recieve:
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.
09-21-2012 04:18 AM
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
09-21-2012 04:26 AM
The license manager says "Never Expire".
I've not installed LabView because I need only to test OPCServer connectivity from an external application.
Thank you very much.
09-21-2012 07:26 AM
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
09-21-2012 09:58 AM
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.
09-24-2012 03:36 AM
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
09-24-2012 03:44 AM
The quick client work perfectly from the first time. Only datasocket and OPCNetApi don't work.
Thanks
09-24-2012 04:28 AM
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