LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

change boolean indicator type across entire VI

I have a VI with hundreds of round boolean indicators.  I would like to change them to rectangular.  The only way I know to do this right now is to right click, then choose Replace and navigate to the rectangular type.  If I select several indicators at a time, this right-click context menu is no longer avaialble.

 

Is there a way to do this across the entire VI, either by editing a params file somewhere or by being able to select many at the same time/

0 Kudos
Message 1 of 5
(2,612 Views)

You can do it with VI scripting.

 

Create a VI that gets references to all the booleans in your VI.  Use the Scripting Invoke node Replace, to replace that control with the new control.  The Style ID for the square LED is 21013

0 Kudos
Message 2 of 5
(2,603 Views)

thank you, I'll see what I can do...

0 Kudos
Message 3 of 5
(2,601 Views)

@bmishoe wrote:

thank you, I'll see what I can do...


QD_ReplaceIndicator_BD.png

 

Here's a Quick Drop plugin that'll do what you describe.  Change the style constant in the For loop to change what it replaces the selected objects with.

 

This VI is in LabVIEW 2012 and was not made pretty. 🙂

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 4 of 5
(2,582 Views)

Sorry, I'm just now seeing this thread. You probably didn't need to write a custom scripting VI to do this... there is a built-in Quick Drop Keyboard Shortcut in LabVIEW 2010 and later that will perform a replace of one or more selected objects. So you could select the round LEDs, press Ctrl-Space, type "Square LED", and press Ctrl-P. That will replace all of the selected objects with the object type you specified in the Quick Drop text box.

0 Kudos
Message 5 of 5
(2,506 Views)