From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Front panel GUI LED's that are also controls

Solved!
Go to solution

Hey,

 

I am trying to make a front panel that will control a stage. I want to have an X by Y grid of squares that once clicked can modify an array (can just be true/false values), and light up to show they have been selected. In this way a used can see the pattern they are clicking and modify it directly. I thought of using the square LED's but you cannot use them as a control, only an indicator I think.

 

Does anyone have any ideas on how to do this?

 

Best regards,

Matthew

0 Kudos
Message 1 of 4
(2,451 Views)

right-click...change to control.

0 Kudos
Message 2 of 4
(2,447 Views)

Ah thanks! And I dont suppose there is a more elegant solution if I need a 8x40 pattern than doing 320 separate LED's and wiring them separately into an array? 

0 Kudos
Message 3 of 4
(2,412 Views)
Solution
Accepted by topic author md12g12

Drop the led into an array container, resize the index for two dimensions, size as desired, click on the lower right LED to turn it on, then off (to set the array size), then right-click the array container (not one of the LEDs!) and select "data operation...make current value default". Save the VI.

Message 4 of 4
(2,408 Views)