LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Name elements of a bundle

Solved!
Go to solution

Hello to all,

 

I want to display several variables at the same time in a chart. I am using a bundle for that. I would like to give a name to each bundle signal. Is there a way to do it ?

 

There is a photo attached.

 

Thanks 🙂

0 Kudos
Message 1 of 6
(4,087 Views)

Hi Mahmoud,

 

that's what BundleByName is for - use it in conjunction with typedefined clusters…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(4,080 Views)
Solution
Accepted by topic author Mahmoud63PPC

You can wire a cluster diagram constant of the correct type to the middle of the bundle function , then name the elements accordingly.

 

Here is a simple example:

 

LabelClusterElements.png

 

Of course to label e.g. the traces of your charts, you can use property nodes or even manual configuration.

Message 3 of 6
(4,071 Views)

The cluster name won't affect the value of the elements (0)?

0 Kudos
Message 4 of 6
(4,043 Views)

@Mahmoud63PPC wrote:

The cluster name won't affect the value of the elements (0)?


Is this a statement or a question? What does "elements (0)" even mean?

 

The Name of the cluster constant (or whatever is wired to the middle) will be the name of the cluster output ("My cluster" here). The Names of the elements of the cluster constant will be the names of the elements ("Count", "Value" here).

 

 

LabelClusterElements2.png

0 Kudos
Message 5 of 6
(4,035 Views)

Hi Mahmoud,

 

The cluster name won't affect the value of the elements (0)?

Which "cluster name" are you talking about?

(The label of the cluster will not affect any values of the elements in the cluster…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 6
(4,034 Views)