LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can you create multiple property nodes at once?

I have about 50 controls/indicators on a tab of a VI.  Based on user selection of a radio button, I need to show/hide a subset of these controls/indicators.  Additionally, I'm writing values to the Val(Sgnl) property of several of them.

 

Right now, the only way I know how to do this, is to right click on a single control, select Property->Visible or Property->Val(Sgnl), and then wire up that reference like I want it.  Is there a way to select multiple controls/indicators at once so that it will automatically create the 50 property nodes that I want?

 

I'm using them inside a case structure, so it's like, if case==X, then show/hide these and write these values to these others...so to repeat this for 50 controls, times however many cases, is getting redundant...

 

Thanks

0 Kudos
Message 1 of 6
(4,545 Views)

Not that I know of. But a little less labor intensive possibility is to create references to all or groups of controls, which can be done by selecting a bunch of them on the diagram and "Create:Reference", group them into an array(s), feed the array(s) into the appropriate case, handle them in there (i.e. feed the array of specific control refs into a FOR loop which has a property node for setting control visibilty).. "Ben" had some articles on handling user interface components, you may be able to find them with a search. It is labor intensive, but there are tricks to save some of that.

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



Message 2 of 6
(4,538 Views)

You may find this module interesting.  It manages a group of control references.  You can add, delete, or clear the references in the group.  Right now it supports enabling or disabling the current group, but you can add new functions as needed.  You begin by loading the manager with a list of references.  Then you can perform operations on that list.

 

All the best.

0 Kudos
Message 3 of 6
(4,521 Views)

You can place the controls/indicators in clusters and change visibility on the groups all at once.

 

/Y

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 4 of 6
(4,513 Views)

 

One approach is that you can select the controls 'en masse' and turn a selection on / off  using a simple array of names.

 

hide.jpg

Message 5 of 6
(4,500 Views)

@NeilR wrote:

 

One approach is that you can select the controls 'en masse' and turn a selection on / off  using a simple array of names.

 


This approach is very neat in that you can use string wild cards if your controls are named a way that regular expression can find them.  Lets say I have 20 boolean controls all named "Boolean XX".  I can setup a search to find all controls whos name starts with "Boolean " and disable/enable them all.  This can be a little more difficult for new developers to debug because you will see controls change state, but when you right click and choose Find Property Nodes or References there won't be any found because you are finding them dynamically.  So be causious and document well where you are changing controls this way.

0 Kudos
Message 6 of 6
(4,445 Views)