10-20-2009 05:13 AM
Hi, i'm wanting to communicate with an opc server over the ethernet. Currently using a non labview based client, i require a Labview based client. And will using this as part of my labview program.
Thanks Stuart
10-20-2009 05:43 AM
Use the example at the following link:
How Do I Connect to an OPC Server Using DataSocket?
If you have any questions, please post back.
10-20-2009 06:59 AM
Hello Adnan,
I have a question concerning OPC and dataSocket:
how can I detect a connection loss?
My problem is that a connection that gets interrupted, let's say by disconnecting the network cable or server shut down, doesn't lead to any errors or data output change on a data socket read vi. A heartbeat signal, that could be monitored to detect connection loss, is not available on the server-side.
Any ideas?
Thanks in Advance,
Thomas
10-29-2009 04:33 AM
10-29-2009 05:55 AM
Hi Adnan,
I want to detect a connection loss on the client side.
I'm using data socket as OPC-client to read data from a third party remote server and I'm currently not able to detect (on client side) any kind of connection loss . For example, if someone shuts down the remote server pc or pulls the LAN-cable or anything like this, I would like to detect it somehow. In case of connection loss the data socket read vi simply delivers the last read value without any error, warning or status change (at least in LV 8.5.1 it does). I need to find a way to check (on client side) the connection status somehow to be able to react on it. Any suggestions?
Thanks in advance,
Thomas
11-16-2009 03:41 AM
Hi ThHagel,
Perhaps there's a way you could send a "true" value to the client every x seconds and just check for "false" on the client side for timeout?
Regards,
Imtiaz Chowdhury
Project Manager
Green Running / Austin Consultants
05-25-2010 06:20 AM
Hi Thomas, did you solve this problem?? as have the exact same problem.
Stuart:)
05-31-2010 05:15 AM
Hi Stuart,
unfortunately I didn't solve it. If your OPC-Server provides any cyclically changing signals, use them to detect connection loss.
Regards,
Thomas