TiScope.AddDataBlock
TiScope
Used to add block of data points to the scope via a 2-dimensional variant
array.
procedure AddDataBlock(Data: Variant);
Description
Call the AddDataBlock method to pass a block of data to the scope as a
variant. Variant must be two dimensional with the first dimension representing the
channels and the second dimension representing the data points for each channel.
If the variant array is not two dimensional, an exception will be generated.
This method is useful if you already have your data in Variant format
(2-dimensional array). If not, it is faster to use the AddChannelData method to add the data point-by-point.
Note: You must call DataBlockBegin before calling this method. After adding all of the data needed, then you
must call DataBlockEnd so that the Trigger can be evaluated and the data can be drawn to the display.
Important Note: you should check TransferringActive before attempting to add data to the Scope or calling DataBlockBegin or DataBlockEnd. If the TransferringActive property is TRUE, then you should defer adding data until a later time.
Example
Delphi
Value := iComponent.AddDataBlock(Variant);
C++ Builder
Value = iComponent->AddDataBlock(Variant);
Contents | Index | Previous | Next