LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Send same property to multiple property nodes

Hey all, I have a front panel where I want to change the visibility status of various nodes based on the system state. Right now, my vi's unlock state looks like this: 

 

Hardway.PNG

 

Is there any way to condense this such that I could send Visible =(true), for example, to all the desired controls/indicators? Even if I could only send it to my desired bool controls/indicators, that would also save space (and wiring time).

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

For common properties like "Visable" "Enabled", etc you can use an array of references to the affected controls and indicators.

 

For unique properties like "value" I will bundle up references and use a sub-VI to apply the changes.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 5
(3,428 Views)

Vanishing.pngMaybe, you could do something like this in another vi once you save your original.  This example will turn all controls and indicators visible/invisible and would need a case statement within the loop for finer control.

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
Message 3 of 5
(3,422 Views)

@Minions wrote:

Vanishing.pngMaybe, you could do something like this in another vi once you save your original.  This example will turn all controls and indicators visible/invisible and would need a case statement within the loop for finer control.


I had thought about using a for loop, but would there be a good way to eliminate the delay between each Ctl becoming visible as the loop cycles through the array?

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

@ATE-EGNE wrote:

@Minions wrote:

Vanishing.pngMaybe, you could do something like this in another vi once you save your original.  This example will turn all controls and indicators visible/invisible and would need a case statement within the loop for finer control.


I had thought about using a for loop, but would there be a good way to eliminate the delay between each Ctl becoming visible as the loop cycles through the array?


You would need a very slow machine to be able to spot the delay.

 

But if you did you could use an "deferFPUpdat" node to defer front panle updates BEFORE the For loop and then un-defer the updates when done.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 5
(3,405 Views)