TiPlotChannelCustom.OPCDeactivate

TiPlotChannelCustom

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

procedure
OPCDeactivate;

Description

Use OPCDeactivate to manually deactivate a connection between the Channel and the OPC Server.

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].OPCDeactivate; //Disconnects Channel from OPC Server

C++ Builder

iComponent->Channel[0]->OPCDeactivate(); //Disconnects Channel from OPC Server

Note: CLX Components do not support OPC Features.

Contents | Index | Previous | Next