LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Set maximum matrix row and column size

I hope someone can help me with this. Is there any way to set the row and column size of a matrix control? I have not been able to find a solution. The only way I've been able to set the size is by resetting matrix to its previous state if the user inputs a value outside of the bounds I would like to set. This is done in the 'value changed' event case.

The matrix is large and therefore I cannot increase the size of the control to be the maximum size and then hide the row and column index controls. These have to be displayed.

Any suggestions or help would be greatly appreciated. Thanks in advance.
0 Kudos
Message 1 of 5
(2,765 Views)
Anyone?
0 Kudos
Message 2 of 5
(2,758 Views)
Here's a quick and dirty way.
 
Simply hide the index controls and replace them with some fake numeric controls and set the data range accoding to your requirements.
 
In the attached example (LV8.0), the fake index controls are limited to 0..2, the array size is 5x5 and the displayed array portion is 3x3. Seems to work fine.
 
(Of course you could add a bit more code to set the limits automatically based on the various sizes.)
 
You could also make it more fancy and turn the entire thing into an Xcontrol. 😉

Message Edited by altenbach on 06-06-2007 05:32 PM

0 Kudos
Message 3 of 5
(2,753 Views)
Of course the procedure is exactly the same for an array control and a matrix control. 😉
0 Kudos
Message 4 of 5
(2,746 Views)
That will work. Thank you!!!
0 Kudos
Message 5 of 5
(2,732 Views)