LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to anchor a label to object(s) on Block Diagram?

Is there a way to anchor a label on the Block Diagram to an object or group of objects...so that if you move it/them...the label moves with them?

 

Thanks in advance,

 

cayenne

0 Kudos
Message 1 of 5
(3,224 Views)

What type of object?

 

I don't know about groups, but you could make the label visible on just about any object.  Use that and it will stay with that particular object.

0 Kudos
Message 2 of 5
(3,223 Views)

I typically re-use structure labels (FOR loops, case structure, while loop, etc.) for documentation (Right-click... show label...modify label). These are anchored to the structure and stay with the structure (and anything in them). 😉

 

In LabVIEW 2012, we also have subdiagram labels.

0 Kudos
Message 3 of 5
(3,218 Views)

@altenbach wrote:

I typically re-use structure labels (FOR loops, case structure, while loop, etc.) for documentation (Right-click... show label...modify label). These are anchored to the structure and stay with the structure (and anything in them). 😉

 

In LabVIEW 2012, we also have subdiagram labels.


OK, thank you, I"ll likely try that.

 

I was referring to the "Free Label" object under the Structures->Decorations section of the palette...thinking maybe you could associate this with some code...also, I'm guessing there isn't a good wayt to 'group' parts of code on the block diagram, like you can on the front panel, is there?  Those options appear greyed out when I select a number of objects on the block diagram and look there.

 

I was wanting to us that to make sure when I was dragging sections of code around that I want to keep together, it would always travel around the screen as one....much like the front panel. I was hoping to include the Free Label that way too...

 

Am I missing something, or is this functionality just not available? If it isn't available...why are the group/ungroup options (even while greyed out) shown on the menu system of the block diagram section?

 

Thanx,

 

cayenne

0 Kudos
Message 4 of 5
(3,177 Views)

Your situation seem to be the typical case where you should be creating a subVI and the associated documentation for this portion of code.

As soon as you see that you need to move/copy a part of your code from time to time it is recommended to create a subVI.

Regards,

Baptiste

0 Kudos
Message 5 of 5
(3,161 Views)