Example Code

Element By Element Array Set Into A Cluster Using 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 shows the basic manipulation of an array to be placed into a cluster, then set back into an array. 

 

Description

This code was developed for use in an application that needed a descriptive string associated with each element of data. This is useful if a developer has an existing array and they'd like to place the data side by side with some sort of descriptive string. 

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Configure an input array (random in the case of this example)
  2. Click run
  3. Observe the different elements in the cluster, and the add operation that took place

 

Additional Information or References

VI Snippet

 

 Array Generation with Cluster.png

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

Bobby Breyer
Applications Engineer
National Instruments

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