Example Code

Changing 64 Element Boolean Array with 8 Booleans and a Enum 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

Coding that exemplifies how to take in 8 Boolean values and place them into a 64 indexed 1D array.

 

Description

This VI will take in 8 Boolean control values and update the values of a 64 indexed 1-D array of Booleans. In order to choose where the 8 Values will be placed in the array, the Enum called "Choose Which Section of Eight Booleans to Change" will allow you to select each 8 section of the array.

 

Requirements

LabVIEW Base Development System.

 

Steps to Implement or Execute Code
1. Run the VI.
2. Choose the section of the 64 indexed Boolean 1-D array from the enum named: Choose Which Section of Eight Booleans to Change.
3. Change the values of the Boolean # controls.
4. Hit the Change Values Boolean Button.

 

Additional Information or References

 Snippet.png

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


Jim St
National Instruments
RF Product Support Engineer

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