TiScope.AddChannelData
TiScope
Used to add data to a specific channel.
function AddChannelData(Channel: Integer; Y: Double);
Description
Call the AddChannelData method to add Y-Value to the channel. Data is
generally added in blocks as you receive it from your data acquisition hardware.
First call DataBlockBegin before adding any data. Then, call AddChannelData for each piece of data
that you have (i.e. you receive 500 data points, call AddChannelData 500 times in
a loop for each piece of your data). When you are finished, call DataBlockEnd.
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.
Note: You must add the same number of data points to all channels before calling DataBlockEnd. Otherwise, an exception will be generated.
Example
Delphi
Value := iComponent.AddChannelData(0, 35.3); //Add a Y-Value to Channel #1
C++ Builder
Value = iComponent->AddChannelData(0, 35.3); //Add a Y-Value to Channel #1
Contents | Index | Previous | Next