ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dimmed buttons in the array

Solved!
Go to solution

Hi,

I encountered a strange behavior on some buttons(control) in an array and I just can't figure out how to resolve this. If you look at the picture I attached below, you can see some buttons are dimmed in the array. It looks like this whenever I open up the VI and no matter how I initialized the button while they are not dimmed, they always go back to dimmed if I reopen it. It doesn't affect the functionality, but it is super annoying and it looks very unprofessional. Thanks for your advice in advanced.

 

robinweidfcom_0-1720559102329.png

 

0 Kudos
Message 1 of 5
(1,486 Views)

The number of elements in the array is tied to its "default value". If you want to set a new default value, you can select the control, then click edit >> make selected values default.

Message 2 of 5
(1,477 Views)
Solution
Accepted by topic author robinwei@df.com

Those buttons are dimmed because those array elements are empty.

  1. Put the desired default value into the array.
  2. Right-click on the array (make sure it's on the array, not on one of the elements).
  3. Select: Data Operations -> Make Current Value Default.
Message 3 of 5
(1,476 Views)

Thanks Greg for your suggestion. I did that for like 10 times, but it didn't work. 🙂

0 Kudos
Message 4 of 5
(1,469 Views)

Hi Paul, your key phrase saved the day. "make sure it's on the array, not on one of the elements" Thank you!

0 Kudos
Message 5 of 5
(1,465 Views)