LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

OPC SERVER AND CLIENT

I'm trying to connect two applications in LabWindowsCVI 6.0 using OPC Server (in the same PC). Someone can send me an exemple with a double value is passed from the first application to the second and another value is passed from the second application to the first ?

Thank You very much !
0 Kudos
Message 1 of 4
(3,646 Views)
If you are trying to communicate between two CVI applications you should not be using OPC. You should use interprocess communication such as TCP or DataSocket. Here are some example programs for you to look at to see how this is done:

\cvi\samples\tcp\client.prj (TCP client application)
\cvi\samples\tcp\server.prj (TCP server application)

\cvi\samples\datasocket\Reader\Reader.prj (Datasocket reading application)
\cvi\samples\datasocket\Writer\Writer.prj (Datasocket writer application)

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 4
(3,646 Views)
I want to use OPC because one of the application in LabWindowsCVI is connect to the OPC server for reading data from an other application.
0 Kudos
Message 3 of 4
(3,646 Views)
Hello

You can use datasocket to read from an opc server, check out the examples under CVI.

..\CVI\samples\datasocket\OpcClient\OpcClient.prj

Hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 4 of 4
(3,646 Views)