TiPlotChannel.OPCXValueSource

TiPlotChannel

Used to set whether or not the OPC Item Auto-Connects for this channel.

type
TiOPCXValueSourceStyle = (iopcxvsOPCServerTimeStamp, iopcxvsSystemTimeStamp, iopcxvsElapsedTime, iopcxvsElapsedSeconds);

property OPCXValueSource : TiOPCXValueSourceStyle

Description

Use the OPCXValueSource property to set the source of the X-Value obtained when adding data to the chart via an OPC Server.

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 according to the following possible settings...

Value
Meaning
iopcxvsOPCServerTimeStamp
Whenver data is received, the X-Coordinate will be obtained from the OPC Server's Time Stamp
iopcxvsSystemTimeStamp
Whenver data is received, the X-Coordinate will be obtained from the local computer's System Time Stamp.
iopcxvsElapsedTime
Whenver data is received, the X-Coordinate will be obtained from the time (In Date/Time Format, be sure to setup the X-Axis for Date/Time values)elapsed since the ResetElapsedStartTime procedure has been called.
iopcxvsElapsedSeconds
Whenver data is received, the X-Coordinate will be obtained from the time elapsed (In Seconds, not in Date/Time format) since the ResetElapsedStartTime procedure has been called.

Important Note: The iXYPlot component does not support this property. It always obtains it's X-Coordinate from the OPC Server Time Stamp.

Example

Delphi

iComponent.Channel[0].OPCXValueSource := iopcxvsOPCServerTimeStamp;

C++ Builder

iComponent->Channel[0]->OPCXValueSource = iopcxvsOPCServerTimeStamp;

Note: CLX Components do not support OPC Features.

Contents | Index | Previous | Next