Understanding & Manipulating Clusters in NI: Bundle, Bundle by Name, Unbundle, & Unbundle , Study notes of Mathematical Modeling and Simulation

An overview of cluster functions in national instruments, explaining how to use the bundle, bundle by name, unbundle, and unbundle by name functions to assemble, manipulate, and disassemble clusters. Learn how to change the values of individual elements, replace or access labeled elements, and split a cluster into its individual elements.

Typology: Study notes

2011/2012

Uploaded on 10/20/2012

christina
christina 🇺🇸

4.6

(23)

393 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Connexions module: m12228 1
Cluster Functions
National Instruments
This work is produced by The Connexions Project and licensed under the
Creative Commons Attribution License
Abstract
In this section, you will learn about Cluster Functions.
Use the
Cluster
functions located on the
Functions
All Functions
Cluster
palette to create and
manipulate clusters. Use the
Bundle
and
Bundle by Name
functions to assemble and manipulate clusters
and use the
Unbundle
and
Unbundle by Name
functions to disassemble clusters.
You also can create the
Bundle
,
Bundle by Name
,
Unbundle
, and
Unbundle by Name
functions by right-
clicking a cluster terminal on the block diagram and selecting
Cluster Palette
from the shortcut menu.
The
Bundle
and
Unbundle
functions automatically contain the correct number of terminals. The
Bundle by
Name
and
Unbundle by Name
functions appear with the rst element in the cluster. Use the
Positioning
tool to resize the
Bundle by Name
and
Unbundle by Name
functions to show the other elements of the
cluster.
1 Assembling Clusters
Use the
Bundle
function to assemble a cluster from individual elements or to change the values of individual
elements in an existing cluster without having to specify new values for all elements. Use the
Positioning
tool to resize the function or right-click an
element
input and select
Add Input
from the shortcut menu. If
you wire a cluster to the
cluster
input, the number of inputs must match the number of elements in the
input cluster.
If you wire the
cluster
input, you can wire only the
elements
you want to change. For example, the
cluster in Figure 1 contains three controls.
Version 1.1: Jul 16, 2004 3:11 pm GMT-5
http://creativecommons.org/licenses/by/1.0
http://cnx.org/content/m12228/1.1/
pf3

Partial preview of the text

Download Understanding & Manipulating Clusters in NI: Bundle, Bundle by Name, Unbundle, & Unbundle and more Study notes Mathematical Modeling and Simulation in PDF only on Docsity!

Cluster Functions

National Instruments

This work is produced by The Connexions Project and licensed under the Creative Commons Attribution License †

Abstract In this section, you will learn about Cluster Functions. Use the Cluster functions located on the FunctionsAll FunctionsCluster palette to create and manipulate clusters. Use the Bundle and Bundle by Name functions to assemble and manipulate clusters and use the Unbundle and Unbundle by Name functions to disassemble clusters. You also can create the Bundle, Bundle by Name, Unbundle, and Unbundle by Name functions by right- clicking a cluster terminal on the block diagram and selecting Cluster Palette from the shortcut menu. The Bundle and Unbundle functions automatically contain the correct number of terminals. The Bundle by Name and Unbundle by Name functions appear with the rst element in the cluster. Use the Positioning tool to resize the Bundle by Name and Unbundle by Name functions to show the other elements of the cluster.

1 Assembling Clusters

Use the Bundle function to assemble a cluster from individual elements or to change the values of individual elements in an existing cluster without having to specify new values for all elements. Use the Positioning tool to resize the function or right-click an element input and select Add Input from the shortcut menu. If you wire a cluster to the cluster input, the number of inputs must match the number of elements in the input cluster. If you wire the cluster input, you can wire only the elements you want to change. For example, the cluster in Figure 1 contains three controls.

∗Version 1.1: Jul 16, 2004 3:11 pm GMT- †http://creativecommons.org/licenses/by/1.

Figure 1

If you know the cluster order, you can use the Bundle function to change the Command value by wiring the elements shown in Figure 2.

Figure 2

2 Replacing or Accessing Cluster Elements

Use the Bundle by Name function to replace or access labeled elements of an existing cluster. Bundle by Name works similarly to the Bundle function, but instead of referencing cluster elements by their cluster order, it references them by their owned labels. You can access only elements with owned labels. The number of inputs does not need to match the number of elements in output cluster. Use the Operating tool to click an input terminal and select an element from the pull-down menu. You also can right-click the input and select the element from the Select Item shortcut menu. In Figure 3, you can use the Bundle by Name function to change Command and Function.

Figure 3