TiPlotComponent.LogBufferSize

TiPlotComponent See Also

Specifies the size of the log buffer used by the main plot interface.

property LogBufferSize : Integer

Description

Use LogBufferSize to get or set the size of the log buffer. When logging is active, data will flow into the log buffer if the LogBufferSize is greater than 0. When the buffer is filled, then data will be written to the log file and the buffer cleared. This is useful if you want to regulate how often data is written to the log file. If this value is 0, then data is written to the log file after every new data point is added to the chart.

The value is in number of data points per channel. If you have 5 channels and set this value to 10, then the log will be written to and the buffer cleared after 50 data points have been accumulated.

Warning! All channels must be synchronous. You must use the AddDataArray method when adding data to the plot component when using the main plot interface's logging feature. If you wish to use asynchronous channels, then you must use the LogBufferSize logging feature off of each individual channel.

Note: if the log is deactivated, the buffer will automatically be flushed to the log file and cleared.

Example

Delphi

iComponent.LogBufferSize := 25;

C++ Builder

iComponent->LogBufferSize = 25;

Contents | Index | Previous | Next