Example Code

How to Place a 1D Array Subset Into a 2D Array 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 example replaces a portion of a row or column of a 2D array with a 1D array.

 

Description

The goal is to replace a portion of a row or column of a 2D array. The Replace Array Subset VI will only replace a single element of a 2D array, so this example shows how to replace a larger section.

  

Requirements

LabVIEW Base Development System 2012 or compatible 

 

Steps to Implement or Execute Code

  1. Fill the 2D Array Control
  2. Enter the index of the column and row where the replacement will start
  3. Fill the 1D Array of Replacement Section

 

Additional Information or References

VI Block Diagram

7671 new.PNG

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

National Instruments

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

Comments
BarryGRAEllc
Member
Member
on

thanks for the workaround...

barry