TiStripChart.SetBufferSize
TiStripChart See Also
Specifies the size of the buffers used for time indexs and channel data.
procedure SetBufferSize (Value : Integer);
Description
Use SetBufferSize to set the size of the buffers used for time indexs and
channel data. The intial buffer sizes are set to 16 elements. When the number of
elements tries to grow beyond the buffer size, the buffer size is increased by
25%.
Typically, SetBufferSize is used to improve performance while data is being
plotted so that the buffers are not dynamically resizing during the plotting. If
you know the maximum number of data points that are going to be plotted, call
SetBufferSize to set the buffer sizes greater than the maximum data points so
that the buffers are not resizing during the plotting.
When the ClearData method is called, all buffers are set back to 16 elements.
You will need to call SetBufferSize again to set the desired buffer size.
If MaxBuferSize and MinBufferSize are set to non-zero values, the buffers will
still resize to the MinBufferSize when the number of elements exceeds the
MaxBufferSize.
Example
Delphi
iComponent.SetBufferSize(10000);
C++ Builder
iComponent->SetBufferSize(10000);
Contents | Index | Previous | Next