Search Results for

    Show / Hide Table of Contents

    Class AnalogInput

    Represents an operator that generates a sequence of voltage measurements from one or more DAQmx analog input channels.

    AnalogInput configures and starts a data acquisition task for sampling voltage measurements from one or more physical analog input channels. Samples from each channel will be collected in a sample buffer, where 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.

    If no input source is specified, data will be collected asynchronously every time a new buffer is filled.

    AnalogInput-Async

    Alternatively, if an input observable sequence is provided, a new data buffer will be collected every time a new notification is emitted by the input source.

    AnalogInput-Sync

    Inheritance
    Object
    Source<Mat>
    AnalogInput
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Bonsai.DAQmx
    Assembly: Bonsai.DAQmx.dll
    Syntax
    public class AnalogInput : Source<Mat>

    Properties

    | Improve this Doc View Source

    ActiveEdge

    Gets or sets a value specifying on which edge of a clock pulse sampling takes place.

    Declaration
    public SampleClockActiveEdge ActiveEdge { get; set; }
    Property Value
    Type Description
    NationalInstruments.DAQmx.SampleClockActiveEdge
    | Improve this Doc View Source

    BufferSize

    Gets or sets the number of samples to acquire, for finite samples, or the size of the buffer for continuous sampling.

    Declaration
    public int BufferSize { get; set; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    Channels

    Gets the collection of analog input channels from which to acquire voltage samples.

    Declaration
    public Collection<AnalogInputChannelConfiguration> Channels { get; }
    Property Value
    Type Description
    Collection<AnalogInputChannelConfiguration>
    | Improve this Doc View Source

    SampleMode

    Gets or sets a value specifying whether the acquisition task will acquire a finite number of samples or if it continuously acquires samples.

    Declaration
    public SampleQuantityMode SampleMode { get; set; }
    Property Value
    Type Description
    NationalInstruments.DAQmx.SampleQuantityMode
    | Improve this Doc View Source

    SampleRate

    Gets or sets the sampling rate for acquiring voltage measurements, in samples per second.

    Declaration
    public double SampleRate { get; set; }
    Property Value
    Type Description
    Double
    | Improve this Doc View Source

    SamplesPerChannel

    Gets or sets the number of samples per channel in each output buffer. If not specified, the number of samples will be set to the size of the buffer.

    Declaration
    public int? SamplesPerChannel { get; set; }
    Property Value
    Type Description
    Nullable<Int32>
    | Improve this Doc View Source

    SignalSource

    Gets or sets the optional source terminal of the clock. If not specified, the internal clock of the device will be used.

    Declaration
    public string SignalSource { get; set; }
    Property Value
    Type Description
    String

    Methods

    | Improve this Doc View Source

    Generate()

    Generates an observable sequence of voltage measurements from one or more DAQmx analog input channels.

    Declaration
    public override IObservable<Mat> Generate()
    Returns
    Type Description
    IObservable<Mat>

    A sequence of 2D Mat objects storing the voltage samples. 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.

    Overrides
    Bonsai.Source<OpenCV.Net.Mat>.Generate()
    | Improve this Doc View Source

    Generate<TSource>(IObservable<TSource>)

    Generates an observable sequence of voltage measurements from one or more DAQmx analog input channels, where each new buffer is emitted only when an observable sequence emits a notification.

    Declaration
    public IObservable<Mat> Generate<TSource>(IObservable<TSource> source)
    Parameters
    Type Name Description
    IObservable<TSource> source

    The sequence containing the notifications used for emitting sample buffers.

    Returns
    Type Description
    IObservable<Mat>

    A sequence of 2D Mat objects storing the voltage samples. 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.

    Type Parameters
    Name Description
    TSource

    The type of the elements in the source sequence.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX