Task.Connect(ConnectionType) Method

<< 点击显示目录 >>

主页  PVI通信 > PVI帮助信息 > PVI Services > BR.AN.Namespace > BR.AN.PviServices > Task Class > Task Methods > Connect Method >

Task.Connect(ConnectionType) Method

BR.AN.PviServices .NET


Creates a connection of this instance to its processvariable.

[Visual Basic]

Public Overrides Overloads Sub Connect( _

  ByVal connectionType As ConnectionType _

)

[C#]

public override void Connect(

  ConnectionType connectionType

);

Parameters

connectionType

Defines the ConnectionType of this Variable object

Remarks

The Connected event notifies, that the connection was successfully created whereas the "Error" event notifies, that an error has occured. (e.g. task does not exist) It is also possible to connect the variable object, when its parent (cpu object) was not already connected. In that case the variable object store this "connect" action, to connect the variable object automatically when the cpu connectedevent received.

See Also

Task Class | BR.AN.PviServices Namespace | Task.Connect Overload List


Generated from assembly BR.AN.PviServices [8.1.0.4]