02-03-2006 10:01 AM - edited 02-03-2006 10:01 AM
Message Edited by DonnieD on 02-03-2006 10:05 AM
02-03-2006 10:26 AM
Hi Donnie,
If you only want the user to see 8 elements in the array, just resize it to show 8 elements, then deselect Visible Items > Index Display. Now the user cannot scroll the array, and he will only see the 8 elements.
If this is not the answer you were looking for, please re-post with more details, and perhaps an example VI that explains your issue more clearly.
Good luck,
-D
02-03-2006 11:26 AM
02-03-2006 11:33 AM
Hi Donnie,
You can use a trick that was mentioned in another Dev Exchange post recently. Specifically, don't show the array index on the array control, but stick a numeric control next to the array that controls the array index, and you can assign a minimum (0) and maximum (7) value to that numeric so that the user can only select the numbers 0 through 7. In your diagram, wire the numeric to the IndexVals property of the Array (it's an array of index values, but you'll just have one index value if it's a 1D array).
Hope this helps,
-D
02-03-2006 11:46 AM
It might be possible to use some property nodes for the array itself. You can make your own indexing that will show what array element needs displayed and then do a check if they try to increment outside of the bounds.
02-03-2006 11:48 AM
Hi Darren and Donnie,
See reply #24 in this thread
http://forums.ni.com/ni/board/message?board.id=170&message.id=127096
for one of JPD/Ben's Nuggets.
Let me know if you figure out how to clean up the code. ![]()
Ben
02-05-2006 01:55 AM
02-05-2006 12:08 PM
In LabVIEW 8.0 you could make an XControl that does exactly what you want ;).