Table of Contents

Method Generate

Namespace
Bonsai.DAQmx
Assembly
Bonsai.DAQmx.dll

Generate()

Reads an observable sequence of logical values from one or more DAQmx digital input lines.

public override IObservable<Mat> Generate()

Returns

IObservable<Mat>

A sequence of 2D OpenCV.Net.Mat objects storing the logical values. Each row corresponds to a channel in the acquisition task, and each column to a sample from each of the channels. The order of the channels follows the order in which you specify the channels in the Channels property. Each sample can represent either a single line or a bitmask representing the state of all digital lines in a single port, depending on the configuration of the virtual channel.

Generate<TSource>(IObservable<TSource>)

Reads an observable sequence of logical values from one or more DAQmx digital input lines, where each new buffer is emitted only when an observable sequence emits a notification.

public IObservable<Mat> Generate<TSource>(IObservable<TSource> source)

Parameters

source IObservable<TSource>

The sequence containing the notifications used for emitting sample buffers.

Returns

IObservable<Mat>

A sequence of 2D OpenCV.Net.Mat objects storing the logical values. Each row corresponds to a channel in the acquisition task, and each column to a sample from each of the channels. The order of the channels follows the order in which you specify the channels in the Channels property. Each sample can represent either a single line or a bitmask representing the state of all digital lines in a single port, depending on the configuration of the virtual channel.

Type Parameters

TSource

The type of the elements in the source sequence.