Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Build Digital Data Function

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

Owning Palette: Digital Waveform VIs and Functions

Requires: Base Development System

Builds digital data or modifies existing digital data. If you do not wire the digital data input, the function creates new digital data based on the components you wire. If you wire the digital data input, the function modifies the digital data based on the components you wire.

You can use this function to build digital tables.

Example

digital data is the digital data you want to edit. If you do not wire the digital data input, the function creates new digital data based on the components you wire.
digital data component is a 2D array that contains the data values as 8-bit unsigned integers. Each row in the 2D array represents a single binary value for one sample of data with the most significant bit of data in the first column and the least significant bit of data in the last column. Each value in the 2D array corresponds to a digital value, or digital data state, represented in the digital data output. The following table shows the digital data state represented by each of the valid 8-bit unsigned integers.

Value Digital Data State Description
0 0 (Drive Low) Force logic low. Drive to the low voltage level (VOL).
1 1 (Drive High) Force logic high. Drive to the high voltage level (VOH).
2 Z (Force Off) Force logic high impedance. Turn the driver off.
3 L (Compare Low) Compare logic low (edge). Compare for a voltage level lower than the low voltage threshold.
4 H (Compare High) Compare logic high (edge). Compare for a voltage level higher than the high voltage threshold (VOH).
5 X (Compare Unknown) Compare logic unknown. Do not compare.
6 T (Compare Off) Compare logic high impedance (edge). Compare for a voltage level between the low voltage threshold (VOL) and the high voltage threshold (VOH).
7 V (Compare Valid) Compare logic valid level (edge). Compare for a voltage level either lower than the low voltage threshold (VOL) or higher than the high voltage threshold (VOH).
digital data is the resulting digital data. If you did not wire existing digital data, this is the new digital data. If you wired existing digital data, this is the edited digital data.

Example

Refer to the Digital Waveform Graph.lvproj in the labview\examples\Controls and Indicators\Graphs and Charts\Digital Waveform Graph directory for an example of using the Build Digital Data function.


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit