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

Building Digital Tables

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

Digital tables contain data that you can plot on a digital waveform graph. You can build a digital table manually, convert analog data to digital data, or acquire a digital signal to create a digital table. Complete the following steps to build or modify a table of digital data.

  1. Add a Build Digital Data function to the block diagram.

  2. (Optional) If you want to modify existing digital data, wire the digital data input.
  3. Right-click the data input and select Create»Constant or Create»Control from the shortcut menu.
  4. Enter values in the 2D data array.

    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 represents a specific digital data state. Valid values include 0-7, as indicated by the following table.

    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.
    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).
Note Note  If you wire an array constant to the data input, you can use the Digital Ring constant to simplify entering digital data in the array. The Digital Ring constant allows you to select from the 8 digital data states.

To use the Digital Ring constant, right-click a value in the array and select Replace from the shortcut menu to display a temporary version of the Functions palette. Navigate to the Digital Waveform palette and select the Digital Ring constant. LabVIEW converts any numeric values you previously entered to their corresponding digital data states.
  1. (Optional) If you want to compress the digital data, wire the transitions input to define non-incremental transitions. The transitions array must contain the same number of rows as the data array. Expand the node to display an unwired input. Click the input and place a checkmark next to transitions to display the transitions input.
  2. Right-click the digital data output and select Create»Indicator from the shortcut menu to create an empty digital table.
  3. Run the VI to display the data in the digital table.


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