DataBind subscriptions can be defined to bind OPC server items to Windows controls. Item value changes are written directly to properties of the bound Windows controls or user classes. This class executes the Subscribe handling in a background thread to prevent a blocking of the user interface thread. The data change callback handling is the same as with the OpcDataBind class.
This class does not have a public constructor. Instances are created by calling the BGServer.AddDataBind method.
This class can only be used from classes that derive from System.Windows.Forms.Form. The completion notification with the browse result is synchronized with the user interface thread by internally calling Form.BeginInvoke().
Each server access is timeout checked. On timeout the BGServer GeneralError handler is called to inform the user application. The server access thread may continue to wait for the server call to finish or timeout. Further requests are not being handled before this happens.
Visual Basic (Declaration) | |
---|---|
Public Class BGDataBind |
C# | |
---|---|
public class BGDataBind |
System.Object
OPCDA.NET.BGDataBind