Table of Contents

Class TriggeredBuffer

Namespace
Bonsai.Dsp
Assembly
Bonsai.Dsp.dll

Represents an operator that extracts a number of samples from the input signal whenever a trigger rises.

public class TriggeredBuffer : Combinator<Tuple<Mat, Mat>, Mat>
Inheritance
TriggeredBuffer
Inherited Members

Properties

Count

Gets or sets the number of samples in each triggered buffer.

public int Count { get; set; }

Property Value

int

Methods

Process(IObservable<Tuple<Mat, Mat>>)

Extracts a number of samples from the input signal whenever a trigger rises.

public override IObservable<Mat> Process(IObservable<Tuple<Mat, Mat>> source)

Parameters

source IObservable<Tuple<Mat, Mat>>

A sequence of pairs of 2D matrices, where the first matrix contains the signal to extract samples from, and the second matrix contains the binary trigger signal, where zero values represent the trigger is in a LOW state, and positive values represent the trigger is in a HIGH state.

Returns

IObservable<Mat>

A sequence of Mat objects storing the extracted samples whenever the trigger line changes from LOW to HIGH.