From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Updating Fixed Size Table with Recent Values 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

Overview

This code allows the user to update a Fixed Size Table with the most recently generated values.

 

Description

This VI uses an Event Structure to Generate a DBL Value, then a 2D Array is built with the Index Value and the DBL Value. To make a fixed number of raws in the Table the Array Subset Function is used. Finally to load the Value in the table a couple of For Loops iterates using Number To Fractional String for Formating the Table Values.

 

Requirements

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Run VI
  2. Click on New Value Control to fire the Event and Generate New Value
  3. After 5 Events, the First Position of the table updates with New Value and so on

Additional Information or References

10743.png

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

Best regards,
Rohan B

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