LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

bundling by name

Hallo,

I have four numeric controls Tset, Tmin, Bset, Bmin and I want to bundle them in that order to a cluster. I failed and the LabVIEW-help wasn't usefull to me.

Can anybody give me a hint?

Arno
0 Kudos
Message 1 of 6
(3,379 Views)
In order to use the Bundle by name you need an input cluster. In order to do this, make a cluster constant on your block diagram with constants of the type and name of each of your numeric controls. If you need to change the element that you're writing to you can right click on the element name and go to Select Item to choose the appropriate element.
0 Kudos
Message 2 of 6
(3,379 Views)
In order to use Bundle by Name, the input cluster input of the function must be wired to a control or constant. You can manually create a constant by inserting labeled numeric constants into a cluster or if you already have a control/indicator, right click on it and select Create Constant.
0 Kudos
Message 3 of 6
(3,379 Views)
Arno;

To reorder the elements in a cluster, right-click the cluster and select "Reorder Controls In Cluster..."

Regards;

Enrique
www.visecurity.com
www.vartortech.com
0 Kudos
Message 4 of 6
(3,379 Views)
Hi
I saw that several people advised to use a constant cluster on your diagram. That is a good start but it is even better to make this constant a type definition.
Look in the labview help for type definitions, customizing a control etc.
In this way you can change your typedefinition and change all the connected constants and controls that are linked to this typedefinition.

Only one warning: never reorder the controls in a typedefinition cluster. Weird things can happen!
greetings from the Netherlands
Message 5 of 6
(3,380 Views)
The previous warning from Albert Geven is very appropriate. I just tried reordering the cluster elements in a typedef and it broke every VI that referenced the typedef cluster by name.

What is even more scary than the broken wires on type mismatches is that some of the bundle/unbundle by name functions were not broken but the names were scrambled in order.

I thought this was supposed to be the purpose of referencing a cluster by name!
0 Kudos
Message 6 of 6
(3,346 Views)