Example Code

Split 2D array

Code and Documents

Attachment

Download All

Overview

This example demonstrate the use of Index Array functions to split a 2D array at a specified index.

 

 

Description

This VI receives a 2D array of strings and splits it into an Upper and an Lower array. The split happens at the row index specified. The index can be simply changed at the front panel.

 

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Open the VI "Split 2D Array 2012 NIVerified.vi”
  2. Run the program

 

Additional Information or References
VI Snippet

Block Diagram.PNG

 

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

 

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

Comments
advance_chintan
Member
Member
on

its not spliting this kind of arrays...

https://decibel.ni.com/content/servlet/JiveServlet/showImage/105-31287-118956/New+Bitmap+Image.bmp

ANY suggestions??

goldmouse72
Member
Member
on

Not sure I understand what you mean about not being able to split those kind of arrays. Please see image.

Do you have your array on a .txt file and then extracting the strings to populate the array control?Capture.PNG

focus
Member
Member
on

An alternative (maybe simpler) for the same purpose.

Split 2D Array.png

TimsTools
Member
Member
on

This VI does exactly what it needed to.  Good candidate for the LabVIEW native palet. 

goldmouse72
Member
Member
on

Cool

Wouldn't that be awesome?