LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Datasockets to communicate with OPC Server

I was wondering if anyone here who has experience in this area can tell me if I am on the right track.. For my application, the OPC server will reside on a separate computer available over the network. I am going to have a list of tags, and presumably an IP address for the server. I think/hope I will be able to write to tags on the server using the datasocket vi's. The url would look something like this "opc://xxx.xxx.xxx.xxx/servername/tagname" (this is just what I think they will look like based on some other messages I've seen here in the forums). I imagine the format of the tagname will be specified somewhere in the server documention. It would be ideal if I could write to a block of tags in one operation, but I don't know the capabilities of the server.

Does this sound reasonable to anyone who has actually done it? I think the protocol would be opc; is there any chance it would be dstp?

Thanks,
Chris
0 Kudos
Message 1 of 2
(2,539 Views)

Hello Chris,

You are right on track with using the datasocket API with OPC . The documents linked below should be a good resource in setting up your connections.

Connecting LabVIEW to an OPC Server through a DataSocket Connection

DataSocket Tutorial

You may also want to take a look at LabVIEW DSC as it has enhanced support for OPC.


Please let me know if you have any questions.

Regards,

Matt F

0 Kudos
Message 2 of 2
(2,516 Views)