LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array constants grayed out upon opening, even when set to default

Solved!
Go to solution

Hello LabVIEW community, 

 

I have a circuit set up with (8) TMP36 temperature sensors connected to an NI 6002. Before the VI runs, I want the user to enter in ambient temperature values as constants within a control array. I also have constants elsewhere in the VI for calibration and offsets. My problem is that four of the eight array constants are "grayed out" when I reopen the VI. I have tried right clicking on the value and selecting Data Operations > Make Current Values Default and Reinitialize to Default Values. The VI will not collect data for the four values that are grey upon opening unless I double click them and renter the values every time. 

 

Any help would be extremely appreciated! 

 

Thank you,

Anne

 

0 Kudos
Message 1 of 3
(2,792 Views)
Solution
Accepted by topic author anneb312

Those arrays are grayed out because they are empty.

When you right-click on an array element and set it's default value, you're setting the default only for the element, not for the array.

To set the default for the array, right-click on part of the array that's not an element (such as the index).

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 2 of 3
(2,767 Views)

Hi Paul, 

 

That worked, thank you very much!

0 Kudos
Message 3 of 3
(2,731 Views)