LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
JÞB

Array Index display needs Home and End

Status: New

Array Home end.PNG

 

Simple, and intuitive similar to increment and decrement index.  How many times have you wanted to find the end of an array without knowing how many elements there are?  A Home and End feature would be nice to have indeed.


"Should be" isn't "Is" -Jay
15 Comments
Darin.K
Trusted Enthusiast

For some reason the picture is not selling me, perhaps my dislike of the moden increment/decrement buttons.  I usually find the scrollbars to be efficient, as well as the Right Click -> Show Last Element.

 

Maybe some alternative pictures will be suggested and I'll fall off the fence.

vitoi
Active Participant

Same here, the picture is pretty ugly. Maybe a right click press of the existing buttons (or shift click) will take you to the beggining and end. Like the concept of the idea.

kegghead
Member
Well, the home would always be 0. But the ability to jump to the last element would be really helpful. Maybe via the Data Operations context menu ? Alternatively, if NI could create a UI element for arrays that displays their size, and allow its visibility to be toggled like any other element in the Visible Items context menu.
A-T-R
Member

The visual presentation should be reworked, but the idea itself is great! Kudos!

JÞB
Knight of NI

OK so the visual wasn't intended to be a final draft (And, if implemented exactly like that I'd complain Smiley Very Happy)

 

However, while "Home" is easy enough (type 0 in the index display- press enter) a one click solution could be convienient.  "End" is more problematic since array size(s) is unknown to the observer.  Scroll it a valid working tool but not availabe for all n dimentions or ANY dimention if 1 element is shown as drawn above.

 

I like the Shift+Decrement Shift+Increment suggestion!!! and would push that approach since it involves no new graphics so updating existing code is seemless and implementation of the new feature is simplified.  (Wish I had thought of that!)


"Should be" isn't "Is" -Jay
AristosQueue (NI)
NI Employee (retired)

You can type in index 99999999999999999. It'll take you to the end. 🙂

 

[EDIT] Grr... I posted that as a joke... and then tried it in seriousness... and have uncovered a CAR about LabVIEW arrays and overflowing indicies. *head smack*

Dragis
Active Participant

i too like the overall concept. i'd be up for the "home" and "end" keys for the show first and last element movements along with "shift" clicking the increment and decrement for the same operations. while we're at it, i'd love to see the "page up", "page down", "insert", and "delete" buttons work as well for moving around within the array.

reddog
Active Participant

You can quickly jump to the last element of the array by right clicking on the array index and selecting Advanced -> Show Last Element.  When I want to go back to the beginning, I usually just type 0 into the index and hit enter.  With that said, it took me a long time to stumble upon this feature.  I think there's definite room for improvement in making this feature easier to find.

Darin.K
Trusted Enthusiast

If you are going to click into the index and type, why not Right-Click and Choose 'Show Last Element'?

 

I do like the wraparound effect.

X.
Trusted Enthusiast
Trusted Enthusiast

@AQ: entering an index value larger than the array size will show an empty element....

@Jeff & Dragis: ...as will shift-incrementing the index to speed up the process, which already exists. You have to give it a few seconds to accelerate (and rapidly become uncontrolable).

 

The current Right-click>>Advanced>>Show last element is indeed tedious. Moreover, it is not doing the best possible job with multidimensional arrays (goes smack to the largest index in all dimensions, which is not what one might want to do necessarily).

I would instead support adding, say, a Ctrl-modifier version of the current index increment/decrement to snap to the first of last element in a given dimension.

So no kudo for the proposed solution (which is not easy to implement for multidimensional arrays) but kudo for the suggestion to add such a functionality.

This being said, that would have a nice number of 9 on my wish list...

My 2 cts.