DWDT Analog to Digital VI
- 已更新2025-07-30
- 閱讀時間為 4 分鐘
Converts analog waveform to a digital waveform or digital data. You must manually select the polymorphic instance you want to use.

Inputs/Outputs
compress digital (T)
—
compress digital specifies whether to compress the digital waveform or digital data. The default is TRUE.
analog waveform
—
analog waveform is the waveform you want to convert to digital waveform or digital data.
resolution (16 bit)
—
resolution specifies the number of bits represented in the digital waveform or digital data.
full-scale range (pk-pk)
—
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 (no error)
—
error in describes error conditions that occur before this node runs. With the following exception, this input provides standard error in functionality. If an error occurred before this node runs, this node outputs an empty waveform.
data format (offset binary)
—
data format specifies which binary representation you want to use for the digital waveform or digital data.
digital waveform
—
digital waveform returns the waveform that results from the conversion of analog waveform.
resolution (out)
—
resolution (out) returns the number of bits represented in the digital waveform or digital data.
full-scale range (out)
—
full-scale range (out) returns the total peak-to-peak range for the digital waveform or digital data.
error out
—
error out contains error information. This output provides standard error out functionality. |
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.

compress digital (T)
—
analog waveform
—
resolution (16 bit)
—
full-scale range (pk-pk)
—
error in (no error)
—
data format (offset binary)
—
digital waveform
—
resolution (out)
—
full-scale range (out)
—
error out
—