Example Code

Table With Mixed Input and Output

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This example demonstrates one method of creating a table that appears to mix both input and output.


Description
The table shown on the front panel is an array of clusters. The cluster is an input control, but two elements are disabled from the properties menu. Data from the block diagram, or in this case, a separate control, can be displayed to these columns, and the use is still able to enter data into the remaining columns for use on the block diagram.

 

Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Run the VI.
  2. Enter data into Columns 1 and 3, observe that the IO Table updates.
  3. Enter data into Columns 2 and 4 of the IO Table, observe that the "From Table" updates.
  4. Try to enter data into Columns 1 and 3 of the IO Table, LabVIEW will not allow it while the VI is running.

 

Additional Information or References
VI Block Diagram

 1.png

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.