10-29-2008 09:57 PM
Hello all,
My application has to display 256 boolean controls. In the code, I arrange the values as 16 sets of 2 subsets of 8 controls but this doesn't map well to the user interface.
I want to be able to display the controls in a variety of configurations (say, 2 columns of 32 controls and 8 seperate rows of 24 controls - where members of the array may be in either set of controls). Besides mapping each control individually, is there another way to do this? It would be nice to be able to reference the underlying organization easily (eg, so I could display an alert if the user selected 2 controls from the same set of 8 controls).
Is there anyway to achieve something like this with LabVIEW?
Thanks,
Neil
10-29-2008 10:23 PM
You could try grouping similar booleans in clusters and doing arrays of clusters. cluster of arrays. arrays of clusters of arrays. ......
But this will be the entire data structure, so any code you have will have to handle the structure laid out that way.
You could also create a 2-D array of whichever proportions you want. And use reshape array as necessary.
But with either method, you will need to have some pretty complicated code to handle whatever mapping you've got going on between the various configurations and whatever that means in a 256 element array.
10-30-2008 02:27 AM
Hi Neil,
If there's some "regularity" in the relationship between the two data representations - the program-representation (described) and the GUI-representation (proposed) - then there may be a way to do the translation without having to map any individual bools, though, the specific code will almost certainly vary from one GUI representation to the next.
If we had a "visual" example of the mapping, we might be able to give you some ideas...
Cheers.