Connexions

You are here: Home » Content » Polymorphism
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.

Polymorphism

Module by: National Instruments

Summary: In this section, you will learn about Polymorphism.

The Numeric functions located on the Functions>>Express Numeric and Functions>>All Functions>>Numeric palettes are polymorphic. This means that the inputs to these functions can be different data structures, such as scalar values and arrays. For example, you can use the Add function to add a scalar value to an array or to add two arrays together. If you wire a scalar value of 22 and the following array to the Add function.
1 3 2
The function adds the scalar value to each element of the array and returns the following array:
3 5 4
If you wire the previous two arrays to the Add function, the function adds each element of one array to the corresponding element of the other array and returns the following array:
4 8 6
Wire two arrays of different sizes to the Add function, such as the previous array and the following array:
3 1 2 3
The function adds corresponding elements and returns the following array, which is the size of the smaller input array:
7 9 8
You use the Numeric functions with clusters the same way you use them with arrays of numeric values. Refer to Clusters for more information about clusters.

Comments, questions, feedback, criticisms?

Discussion forum

Send feedback