12-14-2009 11:22 AM
I have an application which includes an array of clusters. That array is an element in a higher-order cluster.
The problem is that whenever the array contains only null values, it exhibits the "grayed" color of the higher-order cluster instead of the "grayed" color of the array.
The two attached jpegs show the incorrect color (using the "grayed" color of the higher-order cluster), and the array color when it is not null.
Any ideas as to how to get the null color to be the "grayed" color of the the not null array will be appreciated.
I am using LabView 2009.
12-14-2009 11:25 AM

12-14-2009 11:39 AM
Tried that.
This is a portion of an actual type def.
I cannot change the color in the type def editor using the brush in the tools palette
The color also does not change using a property node in the VI.
The color simply stays at the "grayed" color of the cluster.
This software is an upgrade from version 7.1 and this behavior did not exist in that application.
Thanks for the thought.
Any other ideas?
12-14-2009 01:30 PM
As near as I can tell, this is a change in behavior in LabView 2009.
I just created a cluster from scratch that exhibits this issue.
When I performed the exact same sequence in LabView 7.1, it behaves differently.
Is there a way to get the colors to work the way that they used to?
12-14-2009 03:51 PM - edited 12-14-2009 03:51 PM
Can you attach your control/typedef and some simple code to reproduce the problem.
What is a "null value" exactly in this context?
It seerms to me to be more likely that your array is empty (or short) instead of having the desired number of blank elements.
12-14-2009 04:07 PM
The two attached files readily show the issue.
The one was made with 7.1 and shows the colors as they are desired.
The other was that 7.1 file opened with 2009 and it changed the colors as shown.
12-14-2009 05:25 PM
It appears that the shading for an empty array picks up the tint from the containing cluster, or the Panel color. The easiest way I can see around this if you want your puke green background and a greyed out array is to color your cluster background transparent, put a color box behind the cluster sized appropriately and moved to the back. I have grouped them for ease of scaling/moving.
12-14-2009 05:31 PM
That was unfortunately my assessment also.
It seems that NI has changed the standard behavior of something and it no longer is capable of working the way that it used to.
It seems that they are getting more like microsoft everyday (and not in a good way).
Also, thank you for the color critique.
12-16-2009 12:41 PM
12-16-2009 02:11 PM
No problems in the actual application.
The problem is that technicians have been using this interface for the last three years and have grown accustomed to the appearance.
When I switched to 2009, the appearance changed, prompting a number of questions.
Obviously people will adjust over time, but it seems that they shouldn't have to.
I'm unsure what you mean that 7.1 did not indicate that arrays were unintialized.
Uninitialized arrays showed the "disabled gray" appearance in 7.1.
I use the arrays to feed a for loop and data in the arrays is written to a database.
Inserting 0 value data would change the array count (although I could look for null values since these are strings).