Connexions

You are here: Home » Content » Array Functions
Content Actions
Lenses

What is a lens?

Lenses

A lens is a custom view of Connexions content. You can think of it as a fancy kind of list that will let you see Connexions through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to Connexions materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual Connexions member, a community, or a respected organization.

This content is ...
Affiliated with (?)
This content is either by members of the organizations listed or about topics related to the organizations listed. Click each link to see a list of all content affiliated with the organization.
  • This module is included in aLens by: National InstrumentsAs a part of collection:"LabVIEW Graphical Programming Course"

    Comments:

    "A full introductory course on programming with LabVIEW."

    Click the "National Instruments" link to see all content affiliated with them.

    National Instruments
Also in these lenses
  • This module is included inLens: Connexions Books Available for Print on Demand
    By: ConnexionsAs a part of collection:"LabVIEW Graphical Programming Course"

    Comments:

    "This book is available through the Connexions beta version of print-on-demand from online materials."

    Click the "Printable Books" link to see all content selected in this lens.

    Printable Books
Tags

(?)

These tags come from the endorsement, affiliation, and other lenses that include this content.

Array Functions

Module by: National Instruments

Summary: In this section, you will learn about Array Functions.

Use the Array functions located on the Functions>>All Functions>>Array palette to create and manipulate arrays. The more commonly used array functions include the following:
Array Size -  ArraySize.png Returns the number of elements in each dimension of an array. If the array is nn-dimensional, the size output is an array of nn elements. For example, the Array Size function returns a size of 33 for the following array.
7 4 2
Initialize Array -  InitArray.png Creates an nn-dimensional array in which every element is initialized to the value of element. Resize the function to increase the number of dimensions of the output array. For example, the Initialize Array function returns the following array for an element of 44, a dimension size of 33, and one dimension size terminal.
4 4 4
Array Subset -  ArraySubset.png Returns a portion of an array starting at index and containing length elements. For example, if you use the previous array as the input, the Array Subset function returns the following array for an index of 22 and a length of 33.
2 4 4
Build Array -  BuildArray.png Concatenates multiple arrays or appends elements to an nn-dimensional array. Resize the function to increase the number of elements in the output array. For example, if you concatenate the two previous arrays , the Build Array function returns the following array.
7 4 2
4 4 4
To concatenate the inputs into a longer array of the same dimension as shown in the following array, right-click the function node and select Concatenate Inputs from the shortcut menu to create the following array.
7 4 2 4 4 4
Index Array -  IndexArray.png Returns the element or sub-array of n-dimension array at index. For example, if you use the previous array as the input, the Index Array function returns 22 for an index of 00. You also can use the Index Array function to extract a row or column of a 2D array to create a subarray of the original. To do so, wire a 2D array to the input of the function. Two index terminals are available. The top index terminal indicates the row, and the second terminal indicates the column. You can wire inputs to both index terminals to index a single element, or you can wire only one terminal to extract a row or column of data. For example, wire the following array to the input of the function.
7 4 2
4 4 4
The Index Array function returns the following array for an index (row) of 00:
7 4 2

Comments, questions, feedback, criticisms?

Discussion forum

Send feedback