LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Add Labels when creating a constant

Solved!
Go to solution

I think the problem I am finding is that the control editor only allows you to see the front panel and not the block diagram. Yes, the lables are shown on the block diagram for the custom control (also, the same things happens wether is is a number or a string)

0 Kudos
Message 11 of 16
(920 Views)
Solution
Accepted by topic author alecjcook

There is a setting that alows you to get labels of created constant by default (see Aristos first reply in this somewhat abandoned idea)

 

Tools >> Options >> Environment >> Tip Strips & Labeling >> Show Created Constant Labels

 

It is a bit dominant and I turned it off again after a while. As I said, in LabVIEW 2012 you can select all elements of the cluster (e.g. ctrl+click on each), the show all labels with a single right-click action.

 

0 Kudos
Message 12 of 16
(906 Views)

Wilson54910 wrote:

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.


He says he is creating the constants by right-clicking (terminal or wire, I guess). The created cluster constant will inherit all labels of the original so they will most likely have labels.

0 Kudos
Message 13 of 16
(903 Views)

Hi,

   OK so Enviroment|Create Constant Lables Helped a little, but (see below) the left hand cluster is what im getting, and the right hand structure is what I want, any ideas?

Cheers, Alec

 

create constant.JPG

0 Kudos
Message 14 of 16
(888 Views)

That is just a matter of label location.

 

I believe 2012 just got some new options for the default locations.

 

Question:

 

Have you concidered viewing your cluster constants as an icon and when you want to remind yourself what is in the cluster, ctrl-h (show help) switch to wire tool and flaot over the wire?

 

It will give you more info than just the labels and you will avoid the "explosion" that occurs when you add more elements to the type-def.

 

That is all I can offer at the moment.

 

Have fun!

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 15 of 16
(882 Views)

@alecjcook wrote:

Hi,

   OK so Enviroment|Create Constant Lables Helped a little, but (see below) the left hand cluster is what im getting, and the right hand structure is what I want, any ideas?



I agree that labels in clusters are a bit of a mess. Here's a related idea you might like.

0 Kudos
Message 16 of 16
(862 Views)