LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to read "read/write" OPC tags through datasockets

I am having problems reading tags from an OPC server that are "read/write" access. Reading "read-only" tags works good. I am using the Datasocket Open.vi and Datasocker Read.vi and I have tried to set the mode input of the Datasocket Open to "read/write" follow by a Datasocket Read without any success. I am constantly getting the 1179 error as return.  

I have tried to read the same tags with an OPC Client software and it works fine.

 

Anyone that have successfully read a "read/write" OPC tag using Datasockets?  

   

0 Kudos
Message 1 of 4
(3,517 Views)
Are you watching these variables in another program as well? I have seen this error pop up before when variables were on the watch list and variable manager was open.  Make sure you have nothing else grabbing the resource at the same time.
Rob K
Measurements Mechanical Engineer (C-Series, USB X-Series)
National Instruments
CompactRIO Developers Guide
CompactRIO Out of the Box Video
0 Kudos
Message 2 of 4
(3,484 Views)

Wow you are right, the datasockets can read if i close the opto22 PLC HMI. But how do i get both HMI to work and use datasockets to log data?

Thank you.

Seb

0 Kudos
Message 3 of 4
(3,228 Views)

You want to make sure you are using timing  so that you aren't doing it at the exact same time, but in the real world it will seem like you are.

National Instruments
Applications Engineer
0 Kudos
Message 4 of 4
(3,213 Views)