.

Controller.RecorderBufferEvent

This event returns a buffer of data filled by a recorder object.

Event handlers will also receive a message that describes any events associated with the buffer. For example, when the last buffer is filled, the message variable will be set equal to RecorderMessageStopped indicating that the Recorder object has stopped recording data.

Version History

Introduced in MPX 2.0.

Result

Void

Arguments

 
Argument Type Description
message Mpx.RecorderMessage Recorder message associated with the buffer.
number Int32 The value of Recorder.Number of the recorder that is returning a buffer.
buffer 2-D Array of Double The buffer of data being returned.

The size of the array is sampleCount x traceCount.

validSamples Int32 The number of valid samples the returned buffer contains.
sampleCount Int32 The size of the buffer in samples (both valid and invalid).
traceCount Int32 The number of traces in the buffer.

Type

Boolean

Visual Basic

Syntax

Event RecorderBufferEvent(
   message       As Mpx.RecorderMessage,
   number        As Integer,
   buffer()()    As Double,
   validSamples  As Integer,
   sampleCount   As Integer,
   traceCount    As Integer
)

Sample Code

 

Dim controller As Mpx.Controller

controller = New Mpx.Controller(0)

AddHandler controller.RecorderBufferEvent, _
           AddressOf myRecorderBufferEventHandler


Sample Application

 

C#

Syntax

delegate void RecorderBufferEventHandler(
    Mpx.RecorderMessage     message,
    int                     number,
    double[][]              buffer,
    int                     validSamples,
    int                     sampleCount,
    int                     traceCount,
)

event Controller.RecorderBufferEventHandler RecorderBufferEvent;

Sample Code

 

Mpx.Controller controller = new Mpx.Controller(0);

controller.RecorderBufferEvent += myRecorderBufferEventHandler;

 

See Also

Enumerations
RecordeMessage

 

       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2021 Motion Engineering