Example Code

Manipulating tables constructed using the Build Table Express VI in LabVIEW

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

1. Overview:

This example demonstrates some simple manipulation of a table constructed using the Build Table Express VI

 

2. Description: 

Firstly, property and invoke nodes are used to programmatically clear the table, add appropriate column headers and make sure the headers are visible. The data in this example is simulated using the random number generators. The Build Table Express VI incorporates a function to add a date and time stamp to the data. This data is added to the table for each column of data, which may well be unnecessary. This unnecessary time and date data can be easily removed using array manipulation functions. Finally, the code also demonstrates how the user can specify whether a certain event has occurred (e.g. a parameter falling outside a permitted range), details of which will also be added to an additional column in the table.

 

3. Requirements

  • LabVIEW 2012 (or compatible)

4. Steps to Implement or Execute Code

  1. Run "Table Manipulation LabVIEW 2012 NI Verified.vi"
  2. Select the number of rows
  3. Elements will appear in the table every half a second. If event occurred button is clicked, event occured message will appear in the last column of the table
  4. Stop the VI is necessary

 5. Additional Information or References 

 

Block Diagram

Block Diagram.JPG

**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.