TiScope.AddDataBlockChannel

TiScope

Used to add block of data points to the scope via a 1-dimensional variant array for a single channel.

procedure AddDataBlockChannel(Index: Integer; Data: Variant);

Description

Call the AddDataBlockChannelmethod to pass a block of data for a single channel (specified by Index) to the scope as a variant. Variant must be one dimensional with the first dimension representing the data points for the channel.

If the variant array is not one dimensional, an exception will be generated.

This method is useful if you already have your data in Variant format (1-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.AddDataBlockChannel(0, Variant); //Add Data to Channel #1

C++ Builder

Value = iComponent->AddDataBlockChannel(0, Variant); //Add Data to Channel #1

Contents | Index | Previous | Next