LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Add Labels when creating a constant

Solved!
Go to solution

Hi.

   I have created a lot of custom datastructure (Bundles of data). When I right click and say "Create Constant" the constant I create shows the cluster with the data inside it, but without and of the lables. How can I change this so I can see the lables (and possible order them in the way I want?)

Many thanks, Alec

0 Kudos
Message 1 of 16
(3,746 Views)

For ordering and labeling every control keeping that as a control is the easy way. Keep the cluster , right click the cluster and select Reorder controls in cluster then when you can click the controls the respective control's order changes at the left top you can enter the order number there.

 

For making your labels visible for all the controls select all the controls inside the cluster and right click go to properties and enable the Label.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 16
(3,714 Views)

In LabVIEW 2012, you can select all elements of the cluster and show the label with one operation.

 

Are you talking about rearranging the elements in the cluster (cosmetically) or are you talking about the cluster order? You should not change the cluster order, because it will be incompatible with the constant (wire, terminal) you created initially.

 

For cluster constants, I would recommend to arrange (autosizing) the elements vertically (or horizontally). This way they are sorted by element order and thus are easier to read and document.

0 Kudos
Message 3 of 16
(3,712 Views)

rt click on the constant to reorder the list from the unbundle by name list.as far as i know...rt click the individual constants to visble items itself to show label 

 

cluster reorder.pngExample_VI_BD.pngcluster.png

0 Kudos
Message 4 of 16
(3,697 Views)

I think you all misunderstand me. See the below image... When I click "Create Constant" on the input of this object, I see my cluster, all objects unlableled. I would like it to appear like the object on the right, where the objects are labled (Note, if i just say "show lables" they appear ABOVE the object, not to the right hand side, so I would like to define, manually where these live.)

 

Create Constant

 

Cheers, Alec

0 Kudos
Message 5 of 16
(3,672 Views)

For me, the default label position can be changed here:  (by going to Tools >> Options >> Block Diagram)

 

Default label pos.JPG



Never say "Oops." Always say "Ah, interesting!"

0 Kudos
Message 6 of 16
(3,669 Views)

and as for the lables not being shown by default?

0 Kudos
Message 7 of 16
(3,662 Views)

Hi alecjcook,

 

I believe that the reason that the lables are not visible by default is because from looking at your previous post, you are using a cluster constant, containing numeric constants. Numeric constants do not have lables by default.

Nathan
Applications Engineer
National Instruments UK & Ireland
0 Kudos
Message 8 of 16
(3,643 Views)

@alecjcook wrote:

I think you all misunderstand me. See the below image... When I click "Create Constant" on the input of this object, I see my cluster, all objects unlableled. I would like it to appear like the object on the right, where the objects are labled (Note, if i just say "show lables" they appear ABOVE the object, not to the right hand side, so I would like to define, manually where these live.)

 

Create Constant

 

Cheers, Alec


 

Are the names shown in the control editor when you edit the type def?

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 9 of 16
(3,635 Views)

@alecjcook wrote:

I think you all misunderstand me. See the below image... When I click "Create Constant" on the input of this object, I see my cluster, all objects unlableled. I would like it to appear like the object on the right, where the objects are labled (Note, if i just say "show lables" they appear ABOVE the object, not to the right hand side, so I would like to define, manually where these live.)

 

Create Constant

 

Cheers, Alec


 

Are the names shown in the control editor when you edit the type def?

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 10 of 16
(3,634 Views)