LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

what would be the best way to create a control to generate a 16x16 boolean array?

I am trying to write a LabVIEW interface to program some digital chips using their SPI interface and am running into interface problems. Ideally, I would like to be able to create a 16x16 pushbutton matrix and somehow turn that into an array then my plan is to use a case statement and a for loop to read each of the values and send them out, at this point, I'm stuck on making an efficient 16x16 boolean interface, however. Any information would be greatly appreceated.
0 Kudos
Message 1 of 5
(2,772 Views)
I would place all 16 boolean push buttons in a cluster on your front pannel. Then in the block diagram use the cluster to array function in the functions pannel. See the attached vi for an example of how to do this (V6).
Good luck,
Greg
Message 2 of 5
(2,772 Views)
oops, I think i may have misread. Place a 2 dimension array of booleans into a cluster on the front panel. Set array size to be 16x16. See attached vi for 16x16 boolean array cluster (same method - just bigger) version 6.
Greg
0 Kudos
Message 3 of 5
(2,772 Views)
Thanks Greg, this worked out for me.
0 Kudos
Message 4 of 5
(2,772 Views)
Of course, to make things simpler you don't have to put the boolean array into a cluster like I had shown in the last examples. The attached example creates a 16x16 boolean array and initializes them all to false.
0 Kudos
Message 5 of 5
(2,772 Views)