LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

lock diagram parts

hello! do you know in which conditions the "lock" function is enabled and can be used regarding diagram parts? I didn't find any information in Labview help..

locker le diagramme.png

thanks in advance

Pierre FCentum TNS, Grenoble
Certified LabVIEW Associated Developer
0 Kudos
Message 1 of 17
(1,911 Views)

Hi Pierre,

 

you can lock front panel elements...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 17
(1,891 Views)

@Pierre_F wrote:

hello! do you know in which conditions the "lock" function is enabled and can be used regarding diagram parts? I didn't find any information in Labview help..

locker le diagramme.png

thanks in advance


Block diagram objects cannot be locked to a specific location.   They can be excluded from block diagram cleanup with a Right-Click option which will prevent them from moving relative to each other while cleanup runs.  This essentially Groups those objects but only for cleanup. 

 

Lables and Captions may be locked to their owning object (again, with a Right-Click. )  The exception being wire segment lables, they sort of Float along the segment while stretching or changes that add or remove wire bends.

 

Comments may be Attached to any object or node with an attachment arrow, cleanup may move them relative to each other.


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 17
(1,858 Views)

@Pierre_F wrote:

hello! do you know in which conditions the "lock" function is enabled and can be used regarding diagram parts? I didn't find any information in Labview help..


Can you describe in a few words why you think that locking diagram objects would be a useful feature to have?

If the reasons are valid, create an idea to see if it gets any traction.

 

(I don't even lock front panel objects 😄 Typically I use structures to keep things together. arrays, clusters, tabs, legend instead of an extra free label, etc.)

0 Kudos
Message 4 of 17
(1,789 Views)

I think the OP was also wondering why there is a menu item to "Lock" and trying to figure out where to find related documentation and not asking "how to lock".

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 5 of 17
(1,786 Views)

@JÞB  a écrit :


Block diagram objects cannot be locked to a specific location.   They can be excluded from block diagram cleanup with a Right-Click option which will prevent them from moving relative to each other while cleanup runs.  This essentially Groups those objects but only for cleanup. 

 

Lables and Captions may be locked to their owning object (again, with a Right-Click. )  The exception being wire segment lables, they sort of Float along the segment while stretching or changes that add or remove wire bends.

 

Comments may be Attached to any object or node with an attachment arrow, cleanup may move them relative to each other.


yes, you have guessed that clean-up is the main interest of this question. You mentionned "right click option will prevent them from moving relative to each other" I don't understand. what and where is this function? 😮

Pierre FCentum TNS, Grenoble
Certified LabVIEW Associated Developer
0 Kudos
Message 6 of 17
(1,780 Views)

@altenbach  a écrit :

@Pierre_F wrote:

hello! do you know in which conditions the "lock" function is enabled and can be used regarding diagram parts? I didn't find any information in Labview help..


Can you describe in a few words why you think that locking diagram objects would be a useful feature to have?

If the reasons are valid, create an idea to see if it gets any traction.

 

(I don't even lock front panel objects 😄 Typically I use structures to keep things together. arrays, clusters, tabs, legend instead of an extra free label, etc.)


obviously, for clean-up. in order to maintain sets of diagrams during cleanup operation without destroying them, instead of getting bored to unselect item by item.

I'm surprised NI didn't develop this feature that much, because it could make automatic cleaning more valuable

 

(I only talk about diagrams, but regarding front panel, locking function is indispensable for autoscale prevent at window resizing. and that's why I'm using it)

Pierre FCentum TNS, Grenoble
Certified LabVIEW Associated Developer
0 Kudos
Message 7 of 17
(1,778 Views)

You don't have to select "Exclude from block diagram Cleanup" item by item.  You can multi-select with ctrl+click and click-hold+drag or any combination of those.  Right-Click options will apply to all selected objects.

 

As an asside, one of the first things I do to my LabVIEW installations is tune the block diagram cleanup parameters.


"Should be" isn't "Is" -Jay
0 Kudos
Message 8 of 17
(1,744 Views)

As a rule of thumb:

 

If diagram cleanup improves the look of your code. It must have been really (really!!!) bad before!

 

(I never ever use cleanup on my own code. I use it exclusively on bad code found here in the forum. 😄 . My programs are well structured from the beginning as they should be.)

Message 9 of 17
(1,738 Views)

@JÞB wrote:

As an asside, one of the first things I do to my LabVIEW installations is tune the block diagram cleanup parameters.


Can it be semi useful with the right settings? If so, what's your settings? 🙂

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 10 of 17
(1,717 Views)