LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Editing multiple controls simultaneously

Is this possible?  I often want to modify a cosmetic, create a property node, etc. for multiple controls at once.  If you select several controls and then modify one of them the selection get cancelled and only the one you clicked on is affected.  For instance, if you have a bunch of boolean indicators on your front panel and then decide that they should light up yellow instead of the original green can you select them all, color ONE yellow and have all the selected ones change too?
 
 
LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 1 of 7
(3,570 Views)
I do not think you can edit multiple controls. You could create a type def so that you only need to edit one control and then replace all the others with the type-def'ed control. This also has the advantage that when the customer later decides that the color should be purple rather than yellow, you only need to change one place: The type def.

Lynn
Message 2 of 7
(3,567 Views)

Thanks Lynn,

I'm an avid user of type-defs but I tend to use them for big control clusters and the like.  I forget that they have other convenient uses as well.  Most of the time though the need to change a handful of controls at once sneaks up on me and it's too late.  Hindsight is always 20/20!. 

My need right now wouldn't be helped by type defs as I'm creating references for 36 graphs.  So I guess it's back to: right-click, create reference, drop it in place, repeat...Smiley Sad

 

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 3 of 7
(3,552 Views)
If you're trying to do that you're probably better off accessing the "Controls" property of the pane and then autoindexing that into a loop. You can check to see if the specific control is a graph (such as looking at the class name, as shown in the pic below), and then do your business if so. Otherwise, ignore it.
Message 4 of 7
(3,548 Views)

I did actually consider that.  It would be nice to have a toolbox of "helper VIs" that would assist in these kinds of tasks.  As soon as I have the time...Smiley Very Happy

Regards All!

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 5 of 7
(3,541 Views)
OpenG has a good set of "helper VIs". Smiley Wink
0 Kudos
Message 6 of 7
(3,536 Views)

Yup.  I have those on my pallette as we speak but haven't delved into them yet.

Thanks,

K

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 7 of 7
(3,531 Views)