Example Code

Using two different size buffers to show data 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.

    Programming Language

  • LabVIEW G

Code and Documents

Attachment

Description

The code attached to this example shows how to implement two different buffers using a sweep mechanism to update the values in the table. The data is generated randomly, but it represents the acquisition of information using real hardware. 

There could be multiple ways to show the data differently in the table. The easiest approach seems to be implementing a case structure and functions related to the string manipulation palette like the replace string. This example shows a way to avoid using these functions in order to make sure that the developer handles the acquisition data in separate allocations in memory. Therefore, logic or post-acquisition steps can be applied independently to each buffer before displaying the data in the table indicator. 

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