Build Digital Data

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.


icon

Inputs/Outputs

  • cdigtblrn.png waveform
    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.
  • c1du32.png transitions

  • c2du8.png data
    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).
  • idigtblrn.png output waveform
    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.
  • Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Controls and Indicators\Graphs and Charts\Digital Waveform Graph\Digital Waveform Graph.lvproj