TiPlotChannelCustom.OPCActivate

TiPlotChannelCustom

Used to instantiate a connection between the Channel and the OPC Server.

procedure
OPCActivate;

Description

Use the OPCActivate to manually instantiate a connection between the Channel and the OPC Server. If you have not already setup the channel with the OPCComputerName, OPCServerName, and OPCItemName properties or have not setup the item through the built-in property editor, then a connection will not be made.

If you need automatic control over when the connections are made and disconnected between the Channel and the OPC Server, set the OPCAutoConnect property to TRUE so that a connection to the OPC Server is made automatically during streaming/loading of the component.

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].OPCActivate; //Instantiates Connection to OPC Server

C++ Builder

iComponent->Channel[0]->OPCActivate(); //Instantiates Connection to OPC Server

Note: CLX Components do not support OPC Features.

Contents | Index | Previous | Next