TiPlotChannelCustom.Count

TiPlotChannelCustom See Also

Used to get the number of data points already added to the channel or to set the channel data buffer size capacity.

property Count : Integer;

Description

Use Count to get the number of data points already added to the channel or to set the channel data buffer size capacity. If you set the count to a lower number, the buffer size will be reduced and any data truncated will be lost. If you do not want the buffer to be resizing while data is being added, set the count to the maximum number of data points that you expect to be added. The buffer capacity will increase its size by 25% when a data point addition exceeds the current capacity.

Instead of using the Count property to manage the data buffer size, set the RingBufferSize to a non-zero value to limit the buffer to a fixed size.

Example

Delphi

Value := iComponent.Channel[0].Count;

C++ Builder

Value = iComponent->Channel[0]->Count;

Contents | Index | Previous | Next