02-16-2012 04:09 AM
Hello
I have to connect to an OPC server in an upcomming project and have played around a bit with the OPC client options.
I tried using data sockets and that seems to work (bar a user problem when accessing an OPC server on a remote computer but thats another story).
But 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, have tried both localy and on a remote computer with the same OPC server installed. Same result every time.
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 and using data sockets locally).
/ Nimgaard
03-13-2012 09:39 AM
Same exact problem when I follow that tutorial. I'm able to create an I/O server referenced to a custom VI without issue, but connecting to the OPC server causes LabVIEW to crash when I expand and browse for the OPC tags.
LabVIEW 2011 32-bit (11.0), Windows 7 64-bit, DSC module and NI OPC Server 2010.
Anyone know what's wrong?
03-27-2012 02:39 PM
Hi Nimgaard and emptyshelf,
I am looking into this and seeing if I can recreate the crash at my end. Do you get a crash log during the crash that you can post? Also Nimgaard are you also using OPC Server 2010?
Regards,
03-27-2012 06:28 PM
Hey Jeff-P,
I don't get a crash log and LabVIEW doesn't prompt me to investigate previous internal errors when re-opened after the crash. There's nothing in my lvfailurelog directory after the crash either. Is there any other place I should check?
03-29-2012 09:21 AM
I am not at the development computer at the moment but all software im using is from the 2011 DS2 package.
I didnt seem to get any crash log though.
I recently tested against the actual hardware i want to control and used ITools OPC Server to connect to the hardware and i seemed to be able to connect to that OPC Server with bound variables just fine.
So for my part the issue is "solved" in that i got a working solution. Still strange that LabView would just take a dive like that...
/ Nimgaard
06-22-2012 09:35 AM
Hi Nimgaard,
I have the same Error when i tried to expand OPC in shared variable menu, labview crashes. I try whith labview 2011 and labview 2011 SP1. I have W7 x64.
In the attached photo you can look this issue.
José