TiPlotChannelCustom.OPCAutoConnect
TiPlotChannelCustom
Used to set whether or not the OPC Item Auto-Connects for this channel.
property OPCAutoConnect : Boolean;
Description
Use the OPCAutoConnect property to set whether or not an OPC connection is
automatically created for this channel. When AutoConnect is TRUE, when the
component is instantiated, a connection to the OPC server for this channel. When
AutoConnect is FALSE, you must call OPCActivate to create a connection to the OPC Server.
AutoConnect causes a connection to be made to the OPC server anytime streaming
is done with the component. If you use runtime property editors for our
components and the end-user changes properties and clicks on OK or Apply, the
component will re-stream in all properties and reconnect to the OPC Server if
AutoConnect is set to TRUE.
If you need complete control over when the connections are made and
disconnected between the Component and the OPC Server, set AutoConnect to FALSE and then
use the OPCItemActivate and OPCItemDeactivate procedures.
Data Update
A data point is added to the chart whenever data is received from an OPC Item
specified b the OPCItemName property. The Y-Value is obtained from the incoming OPC Item data and the
X-Value is obtained depending on the value specified for the OPCXValueSource property for the TiPlot component, and is specified by the OPC Server's TimeStamp for the TiXYPlot component.
Example
Delphi
iComponent.Channel[0].OPCAutoConnect := True;
C++ Builder
iComponent->Channel[0]->OPCAutoConnect = TRUE;
Note: CLX Components do not support OPC Features.
Contents | Index | Previous | Next