Table Of Contents

DAQmx Read (Samples) (G Dataflow)

Version:
    Last Modified: February 6, 2017

    Reads one or more waveforms from a task that contains one or more analog input channels.

    connector_pane_image
    datatype_icon

    task in

    task in is the name of the task that the operation applies.

    datatype_icon

    error in

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

    datatype_icon

    number of samples per channel

    number of samples per channel specifies the number of samples to read.

    If you leave this input unwired or set it to -1, NI-DAQmx determines how many samples to read based on if the task acquires samples continuously or acquires a finite number of samples.

    If the task acquires samples continuously and you set this input to -1, this node reads all the samples currently available in the buffer.

    If the task acquires a finite number of samples and you set this input to -1, the node waits for the task to acquire all requested samples, then reads those samples. If you set the Read All Available Samples property to TRUE, the node reads the samples currently available in the buffer and does not wait for the task to acquire all requested samples.

    datatype_icon

    timeout

    timeout specifies the amount of time in seconds to wait for samples to become available. If the time elapses, the node returns an error and any samples read before the timeout elapsed. The default timeout is 10 seconds. If you set timeout to -1, the node waits indefinitely.

    If you set timeout to 0, the node tries once to read the requested samples and returns an error if it is unable to.

    datatype_icon

    task out

    task out is a reference to the task after this node runs.

    datatype_icon

    error out

    error out contains error information. This output provides standard error out functionality.

    datatype_icon

    data

    data returns a 1D array of waveforms. Each element of the array corresponds to a channel in the task. The order of the channels in the array corresponds to the order in which you add the channels to the task or to the order of the channels you specify with the Channels to Read property. NI-DAQmx scales the data of the units to the measurement.

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: LabVIEW NXG does not support FPGA devices


    Recently Viewed Topics