Table Of Contents

Read PDM and PCM Waveform VI

Version:
Last Modified: March 31, 2021

Reads data from the channels in the task.

You can select from the following instances of this VI:

Read PCM Waveform VI

Reads data from the channels in the task and returns the data as an array of waveforms.

PDM input task in specifies the reference to the PDM input task.

samples per channel specifies the number of samples to read for each channel. If samples per channel is unwired or -1, this VI determines the number of samples to read based on whether the task acquires samples continuously or acquires a finite number of samples. If the task acquires samples continuously and samples per channel is -1, this VI reads all the samples currently available in the buffer. If the task acquires a finite number of samples and samples per channel is -1, this VI waits for the task to acquire all requested samples, then reads those samples.

timeout specifies the amount of time, in seconds, that this VI waits while retrieving data for the task. The default is 10.

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

PDM input task out returns the reference to the PDM input task.

PCM waveforms returns PCM data in 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 specified in channel list in the Create PDM Input Task VI.

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

elements remaining returns the number of elements left in the buffer.

Read PDM Digital Waveform VI

Reads data from the channels in the task and returns the data as an array of digital waveforms.

PDM input task in specifies the reference to the PDM input task.

samples per channel specifies the number of samples to read for each channel. If samples per channel is unwired or -1, this VI determines the number of samples to read based on whether the task acquires samples continuously or acquires a finite number of samples. If the task acquires samples continuously and samples per channel is -1, this VI reads all the samples currently available in the buffer. If the task acquires a finite number of samples and samples per channel is -1, this VI waits for the task to acquire all requested samples, then reads those samples.

timeout specifies the amount of time, in seconds, that this VI waits while retrieving data for the task. The default is 10.

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

PDM input task out returns the reference to the PDM input task.

digital waveforms returns PDM data in a 1D array of digital 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 specified in channel list in the Create PDM Input Task VI.

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

elements remaining returns the number of elements left in the buffer.

Read PDM Waveform VI

Reads data from the channels in the task and returns the data as an array of waveforms.

PDM input task in specifies the reference to the PDM input task.

samples per channel specifies the number of samples to read for each channel. If samples per channel is unwired or -1, this VI determines the number of samples to read based on whether the task acquires samples continuously or acquires a finite number of samples. If the task acquires samples continuously and samples per channel is -1, this VI reads all the samples currently available in the buffer. If the task acquires a finite number of samples and samples per channel is -1, this VI waits for the task to acquire all requested samples, then reads those samples.

timeout specifies the amount of time, in seconds, that this VI waits while retrieving data for the task. The default is 10.

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

PDM input task out returns the reference to the PDM input task.

waveforms returns PDM data in 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 specified in channel list in the Create PDM Input Task VI.

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

elements remaining returns the number of elements left in the buffer.


Recently Viewed Topics