05-27-2022 04:15 AM - edited 05-27-2022 04:19 AM
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..
thanks in advance
05-27-2022 05:45 AM
05-27-2022 08:06 AM - edited 05-27-2022 08:18 AM
@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..
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.
05-28-2022 12:41 PM
@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.)
05-28-2022 01:13 PM
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".
05-28-2022 03:13 PM - edited 05-28-2022 03:20 PM
@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? 😮
05-28-2022 03:17 PM - edited 05-28-2022 03:35 PM
@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)
05-29-2022 07:14 AM
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.
05-29-2022 11:00 AM
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.)
05-30-2022 08:01 AM
@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? 🙂