01-28-2014 01:53 PM
hi,
I have two 8bit memory arrays 128 bytes long.. One is Flash based that is fixed and the other is User RAM that can be changed. I was looking to compare the memory array's and was hoping to highlite the individual 8 bit values by changing the background or text color so the user could see where the differences are.. When i try this to an individual element, the entire array gets changed. Is there a way to target individual values in the array? Version 11.0.1
01-28-2014 02:03 PM
@Roadrunna wrote:
When i try this to an individual element, the entire array gets changed. Is there a way to target individual values in the array? Version 11.0.1
No there isn't a way to change a propery of one element of an array without changing all the elements in the array. The only difference between two array elements is the value nothing else. That being said there are alternatives to what you want to do. Maybe a table or a listbox would work. Here you can control how each cell looks. You can then color the background of the cell something else.
Or in some cases a cluster can be used instead of an array if the number of elements are known. Then you can color one item in the cluster at a time.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
01-28-2014 02:26 PM
I've done exactly what you're trying to do. Just convert the arrays to clusters then change the background of the individual controls/indicators in the clusters. You can do the comparison using either the arrays or clusters. You can save and manipulate the data as arrays the convert to clusters for display.
01-28-2014 02:43 PM - edited 01-28-2014 02:43 PM
The simplest way would be to display the data in a table and color the cells accordingy.
(I am using this to highlight correlated fitting parameters in one of my fitting programs, see image)
01-28-2014 02:51 PM
I like the use of a table. It lets you see all the arrays at once in one spot. Much better than using clusters.