Skip to content Skip to navigation

Connexions

You are here: Home » Content » Cluster Exercise VI

Navigation

Lenses

What is a lens?

Definition of 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.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

This content is ...

Affiliated with (What does "Affiliated with" mean?)

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.
  • National Instruments display tagshide tags

    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.

    Click the tag icon tag icon to display tags associated with this content.

Also in these lenses

  • eScience, eResearch and Computational Problem Solving

    This module is included inLens: eScience, eResearch and Computational Problem Solving
    By: Jan E. OdegardAs a part of collection:"LabVIEW Graphical Programming Course"

    Click the "eScience, eResearch and Computational Problem Solving" link to see all content selected in this lens.

Recently Viewed

This feature requires Javascript to be enabled.

Tags

(What is a tag?)

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

Cluster Exercise VI

Module by: National Instruments. E-mail the author

User rating (How does the rating system work?)
Ratings

Ratings allow you to judge the quality of modules. If other users have ranked the module then its average rating is displayed below. Ratings are calculated on a scale from one star (Poor) to five stars (Excellent).

How to rate a module

Hover over the star that corresponds to the rating you wish to assign. Click on the star to add your rating. Your rating should be based on the quality of the content. You must have an account and be logged in to rate content.

:
(0 ratings)

Summary: Create clusters on the front panel and use the Cluster functions to assemble and disassemble clusters.

Note: Your browser may not currently support MathML. See our browser support page for additional details. You can always view the correct math in the PDF version.

Exercise 1

1.a) Front Panel

  1. Open a blank VI and build the front panel in Figure 1.
    Figure 1
    Figure 1 (clusex.png)
    1. Place a stop button, located on the Controls>>Buttons & Switches palette, a numeric indicator, located on the Controls>>Numeric Indicators palette, and a round LED, located on the Controls>>LEDs palette, on the front panel.
    2. Place a cluster, located on the Controls>>All Controls>>Array & Cluster palette, on the front panel.
    3. Place a numeric control, located on the Controls>>Numeric Controls palette, two vertical toggle switches, located on the Controls>>Buttons & Switches palette, and a horizontal fill slide, located on the Controls>>Numeric Controls palette, in the cluster.
    4. Create the Modified Cluster by duplicating the first cluster and relabeling it. Right-click the shell of Modified Cluster, and select Change to Indicator from the shortcut menu.
    5. Copy Modified Cluster and relabel it to create Small Cluster. Remove the second toggle switch and horizontal fill slide indicators. Relabel the numeric indicator to Slide value. Resize the cluster as shown in Figure 1.
  2. Verify the cluster order of Cluster and Small Cluster. Modified Cluster should have the same order as Cluster.
    1. Right-click the boundary of each cluster and select Reorder Controls in Cluster from the shortcut menu.
    2. Confirm the cluster orders.
      Figure 2
      Figure 2 (clusexord1and2.png)

1.b) Block Diagram

  1. Build the block diagram in Figure 3.
    Figure 3
    Figure 3 (clusexbd.png)
    1. while.png Place the While Loop, located on the Functions>>All Functions>>Structures palette, on the block diagram.
    2. unbundicon.png Place the Unbundle function, located on the Functions>>All Functions>>Cluster palette, on the block diagram. This function disassembles Cluster. Wire the input cluster to resize the function automatically.
    3. bundicon3.png Place the Bundle function, located on the Functions>>All Functions>>Cluster palette, on the block diagram. This function assembles Small Cluster.
    4. unbundbynameicon.png Place the Unbundle by Name function, located on the Functions>>All Functions>>Cluster palette, on the block diagram. This function returns two elements from Cluster. Resize this function to have two output terminals. If a label name is not correct, right-click the name and select the correct name from the Select Item shortcut menu.
    5. incremicon.png Place the Increment function, located on the Functions>>All Functions>>Numeric palette, on the block diagram. This function adds one to the value of Numeric.
    6. not.png Place the Not function, located on the Functions>>Arithmetic & Comparison>>Express Boolean palette, on the block diagram. This function returns the logical opposite of the value of the Boolean terminal of the Unbundle by Name function.
    7. bundbynameicon.png Place the Bundle by Name function, located on the Functions>>All Functions>>Cluster palette, on the block diagram. This function replaces the values of Numeric and Boolean 11 in Cluster and creates Modified Cluster. Resize this function to have two input terminals. If a label name is not correct, right-click the name and select the correct name from the Select Item shortcut menu.
    8. Complete the block diagram and wire the objects as shown in Figure 3.
  2. Save the VI as Cluster Exercise.vi in the C:\Exercises\LabVIEW Basics I directory.

1.c) Run the VI

  1. Display the front panel and run the VI.
  2. Enter different values in Cluster and run the VI again. Notice how values entered in Cluster affect the Modified Cluster and Small Cluster indicators. Is this the behavior you expected?
  3. Try changing the cluster order of Modified Cluster. Run the VI. How did the changed order affect the behavior?
  4. Close the VI. Do not save changes.

Content actions

Give Feedback:

E-mail the module author | Rate module ( How does the rating system work?)

Rating system

Ratings

Ratings allow you to judge the quality of modules. If other users have ranked the module then its average rating is displayed below. Ratings are calculated on a scale from one star (Poor) to five stars (Excellent).

How to rate a module

Hover over the star that corresponds to the rating you wish to assign. Click on the star to add your rating. Your rating should be based on the quality of the content. You must have an account and be logged in to rate content.

(0 ratings)

Download:

Add module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections directly in Connexions. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need a Connexions account to use 'My Favorites'.

| A lens (?)

Definition of 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.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks