Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Building Digital Tables

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-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 the data on the signals at a particular time with the most significant line of data first. Each value represents a specific digital data state. Valid values include 0-7, as indicated by the following table.

    Value (U8) Digital Data State Description
    0 0 (Drive Low) Force logic low. Drive to the DUT (device under test) low voltage level (VOL).
    1 1 (Drive High) Force logic high. Drive to the DUT high voltage level (VOH).
    2 Z (Force Off) Force logic high impedance. Turn the driver off.
    3 L (Compare Low) Compare logic low. Compare for a voltage level lower than the DUT low voltage threshold.
    4 H (Compare High) Compare logic high. Compare for a voltage level higher than the DUT high voltage threshold.
    5 X (Unknown) Do not compare.
    6 T (Compare Off) Compare logic high impedance. 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. 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.

Resources


 

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