From 09:00 PM Friday, August 7 - 10:30 AM CST Saturday, August 8, ni.com will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Analog to Digital VI

LabVIEW 2018 Help


Edition Date: March 2018
Part Number: 371361R-01
View Product Info

DOWNLOAD (Windows Only)


LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help
LabVIEW 2020 Help

Owning Palette: Waveform VIs and Functions

Requires: Base Development System

Converts analog waveform to a digital waveform or digital data. You must manually select the polymorphic instance you want to use.

Details  

Use the pull-down menu to select an instance of this VI.

DWDT Analog to Digital

compress digital specifies whether to compress the digital waveform or digital data. The default is TRUE.
analog waveform is the waveform you want to convert to digital waveform or digital data.
resolution specifies the number of bits represented in the digital waveform or digital data.
full-scale range (pk-pk) specifies the total peak-to-peak range, or the difference between the minimum and maximum, for the digital waveform or digital data. For example, if the maximum range of a waveform is 1 and the minimum is –1, the full-scale range for the waveform is 2. The default is 2.
error in describes error conditions that occur before this node runs. With the following exception, this input provides standard error in functionality.

This node runs normally even if an error occurred before this node runs.
data format specifies which binary representation you want to use for the digital waveform or digital data.

0unsigned binary—Converts the data to unsigned binary.
1offset binary (default)—The largest negative full-scale value is represented by all zeros, and the largest positive full-scale value is represented by all ones. Zero-scale is represented by a one (MSB) followed by all zeros, for example, binary 1000.
22's complement—Uses two's complement format, which is a common format for representing signed binary values. This format is similar to offset binary, but the MSB is inverted.
digital waveform returns the waveform that results from the conversion of analog waveform.
resolution (out) returns the number of bits represented in the digital waveform or digital data.
full-scale range (out) returns the total peak-to-peak range for the digital waveform or digital data.
error out contains error information. This output provides standard error out functionality.

DTbl Analog to Digital

compress digital specifies whether to compress the digital waveform or digital data. The default is TRUE.
analog waveform is the waveform you want to convert to digital waveform or digital data.
resolution specifies the number of bits represented in the digital waveform or digital data.
full-scale range (pk-pk) specifies the total peak-to-peak range, or the difference between the minimum and maximum, for the digital waveform or digital data. For example, if the maximum range of a waveform is 1 and the minimum is –1, the full-scale range for the waveform is 2. The default is 2.
error in describes error conditions that occur before this node runs. With the following exception, this input provides standard error in functionality.

This node runs normally even if an error occurred before this node runs.
data format specifies which binary representation you want to use for the digital waveform or digital data.

0unsigned binary—Converts the data to unsigned binary.
1offset binary (default)—The largest negative full-scale value is represented by all zeros, and the largest positive full-scale value is represented by all ones. Zero-scale is represented by a one (MSB) followed by all zeros, for example, binary 1000.
22's complement—Uses two's complement format, which is a common format for representing signed binary values. This format is similar to offset binary, but the MSB is inverted.
digital data returns the data resulting from the conversion of analog waveform.
resolution (out) returns the number of bits represented in the digital waveform or digital data.
full-scale range (out) returns the total peak-to-peak range for the digital waveform or digital data.
error out contains error information. This output provides standard error out functionality.

Analog to Digital Details

To create digital data from an analog waveform or to graph an analog signal in a digital waveform graph, you must convert the raw analog data into digital data or the digital waveform data type. Use the Analog to Digital VI to convert the data to digital waveform. Use the Get Waveform Components function to extract the digital data from the digital waveform.

The block diagram below simulates the acquisition of a sine wave with an amplitude of 5, which means the sine wave can contain values that range from –5 to 5. The Analog to Digital VI in this block diagram represents each value with 8 bits. The 8 bits can represent a peak-to-peak value of 10. The probe displays a portion of the resulting values in binary format.

WAS THIS ARTICLE HELPFUL?

Not Helpful