LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DataSocket LabView7.1

Can I use DataSocket VIs of LabView 7.1 to read/write to an OPC-Serever? All OPC-examples use functions prior to version 6i.
0 Kudos
Message 1 of 6
(3,120 Views)

You should be able to.  I was able to succesfuly run the following example with the demo server:

\LabVIEW 7.1\examples\comm\opc.llb\Multiple OPC Items Monitor.vi

Regards,

-Khalid

0 Kudos
Message 2 of 6
(3,105 Views)
Thanks for you fast reply.
I tried out all the examples of opc.llb and saw, that they work. But if you look at their blockdiagram, they are all made up from functions prior to LV 6i situated in datasocket.llb. The help says, that this library  is suppiled for compatibility and that the new primitives, supplied with LV6i are not  fully compatible with OPC. In LV7.1 there are primitives, e.g. DataSocket Read and DataSocket Write, and their help says nothing about OPC. Can I use these for new OPC-applications or do I have to use the functions of datasocket.llb?
I experimented a little myself and, also not yet completed, it looks like that you can use these new functions also for OPC. My question simply is, if anybody knows that for sure.
Kind regards, Peter
0 Kudos
Message 3 of 6
(3,095 Views)
Hi Peter,
 
I couldn't help myself telling you to look at hereSmiley Wink
 
reading and writing OPC items by using an OPC URLs (opc://.....)  is quite similar to reading and writing DSS tags by using DSTP URLs (dstp://........), but the above thread has something more to say!
0 Kudos
Message 4 of 6
(3,090 Views)
Yes, the new DS primitives can be used for OPC communication. See attachment.

Best regards,

Jochen Klier
National Instruments Germany


0 Kudos
Message 5 of 6
(3,081 Views)
Thank you everybody for dealing with my question in detail.
Since I have only a few values to subscribe/read I will try my first program with DS-primitives.
Kind regards
Peter
0 Kudos
Message 6 of 6
(3,063 Views)