06-05-2012 04:38 PM
Hi,
I have to connect to an OPC server from Lab view and have played around a bit with the OPC client options.
I would like to use shared variables as that seems like a handy way to access the needed variables. I have followed the instructions in http://zone.ni.com/devzone/cda/tut/p/id/7450 .
However when i use the create bound variables feature LabView crashes when i browse for OPC tags, step3 under "Create Shared Variables that Connect to the OPC Tags through the I/O Server". If i try to expand the node "OPC1" LabView crashes. I try to access the built in NI OPC server locally.
Also during this process LabView gives warning box saying "Configure OPC server to run with an identity of interactive user". we did try the the steps in http://zone.ni.com/reference/en-XX/help/371618G-01/lvdschelp/config_local_opc_serv/ . However the The interactive user button was disabled under NI OPC sever properties.
Is there something i have missed? Something that needs to be configured before going through that tutorial?
I run LabView 2011 on a 64 bit Win7P computer. The DSC module and the NI OPC Servers are installed and seem to work (when running the OPC examples ).
Thanks.
06-08-2012 08:04 PM
Hello AmritaNikhil,
Thanks for the post, I have a few questions for you about this issue.
What versions of NI OPC Servers are you using?
Is the server hosted on your local machine or on a remote machine?
Are you able to successfully connect NI OPC Servers and NI OPC Quick Client?
Have you been successful in using OPC IO Servers in the past or has this issue occurred since you have started your application?
Can you consistently reproduce this crash?
You can try to work around this issue by using Network Items rather than Project Items when creating bound variables in the Create Bound Variables window. Please try this option and let me know if you have any additional information about your application that may be helpful in solving this issue. In addition, I have also included a link to a similar post. Hope this helps!
LV 2011 crash when create bound variables
http://forums.ni.com/t5/LabVIEW/LV-2011-crash-when-create-bound-variables/m-p/1879137
Paul-B
08-04-2012 08:35 AM
Has there been any resolution to this. I'm using Labview 2011 SP1 and OPC Server 2012 on Windows 7 x64.
There are no crash logs generated. I do get a "Configure OPC server to run with an identity of interactive user" warning; however, when I try the instructions here, http://zone.ni.com/reference/en-XX/help/371618G-01/lvdschelp/config_local_opc_serv/, it is grayed out.
Rick
04-19-2013 06:18 AM - edited 04-19-2013 06:19 AM
Exactly the same issue as rpage here, with NI OPC Server 2012 (V5.5, interactive identity greyed out), but not with an older version of OPC Server (V4.5).
04-25-2013 09:00 AM
Hello guys,
Our R&D department has created a patch that should fix this issue. In order to provide you with it, please send me your email addresses. If you are not comfortable posting them here, you can send it to me via private message.
04-25-2013 09:50 AM
03-16-2014 10:19 PM
Hello.
I have the same problem with Codesys 2.3 OPC Server.
Does the patch work for it?
03-17-2014 12:13 AM
Don't bother... Problem solved
It caused by weird Codesys tag naming: when using single PLC OPC configuration, Codesys starts names of its global variables with a dot. So, an alias in LabView looked like "MyComputer\OPC.lvlib\Codesys\.process_status[1].process_id".
Apparently LabView doesn't like it.
I changed OPC configuration to multiple PLC, so aliases now look like "MyComputer\OPC.lvlib\Codesys\PLC1:.process_status[1].process_id" and it works well for LabView.
03-19-2014 05:58 AM
Hello,
could I also have the patch?
mario.di.castro@cern.ch
thank you!
03-20-2014 01:57 PM
mario_46,
Where you able to get the patch?