Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

Monitoring connection state

More
02 Feb 2017 20:04 #4914 by support
Replied by support on topic Monitoring connection state
As a preamble, QuickOPC is designed to hide the connection logic from you, because OPC communication is basically just a "transfer vehicle" and the connections/disconnections have no semantic significance with regard to the data being transferred by the OPC. That is a fundamental difference from many other OPC libraries. This is intentional. This design brings many benefits, but of course it also limits what you can directly in relation to controlling the conunections.

Yes, the ServerConditionChanged is the right chance for monitoring - see e.g.
- opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%2...onitoring%20and%20Control.html
- opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%2...ServerConditionChanged_EV.html
- opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%2...s.BaseLib.ConnectionState.html

QuickOPC connects as soon as you "need" something from the server, and disconnects "some time" after the connection is no longer needed. In case you subscribe to anything, the connection is needed (and thus kept open) as long as you subscribed.

The time periods that influence this are configurable to some extent. See e.g. HoldPeriod, RetrialDelay, opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%2...sionParameters~HoldPeriod.html , opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%2...onParameters~RetrialDelay.html
.
The following user(s) said Thank You: Captain_Dash

Please Log in or Create an account to join the conversation.

More
02 Feb 2017 12:35 #4911 by Captain_Dash
Hello,

I want to be informed, when the connection to the server is broken, changing and so on. What would be a proper way to achieve this? There is an event called ServerConditionChanged. Is this a proper way to go? I noticed by using this event, that the connection to the server is automatically disconnecting after 2 minute and is reconnecting after 11 seconds again. Why is this happening? Could it be avoided?

Best regards
André

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.057 seconds