LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Darren's Weekly Nugget 2/13/2006

A couple of tips about front panel arrays this week.  If you've got an array on the front panel, and you want to quickly see how many elements are in it, you can right-click on the array and choose Advanced > Show Last Element, and the array index will automatically switch to display the last element in the array.  Before I knew this trick I remember using the arrow keys in the array index control to increase the array index by 1000s, 100s, 10s, and 1s until I found the last element in the array.
 
And if you're using LabVIEW 8.0, you've got the immensely helpful new feature of scrollbars on arrays.  Just right-click the array and choose Visible Items > Vertical (and/or Horizontal) Scrollbar and you can very easily scroll the array contents until you find the last element (or whatever other element you're looking for).
 
-D
Message 1 of 11
(12,657 Views)
Thanks for this Darren,

I'm still using LV 7.1 but looking forward to upgrade.
The scrollbar on arrays has been on the wish list for a couple of year and I didn't know trick you mentioned for LV 7, so thanks again 😉

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 11
(12,644 Views)
Very cool.  I wasn't aware of the "last element" trick and could have really used it just yesterday.
 
Learned something new! 😄
0 Kudos
Message 3 of 11
(12,626 Views)
Hello:

Hey Darren, me and my mouse are grateful with you (I think my mouse is the most grateful). Now I won't have to click the Array Index Control N times to see the size of my arrays. My mouse will last much more time Smiley Very Happy and it would suffer less!

Thanks!



Robst - CLD

Using LabVIEW since version 7.0


0 Kudos
Message 4 of 11
(12,616 Views)

Glad I could help...also remember that you can increment any numeric control (including the array index) by clicking inside the numeric and using the arrow keys to increase/decrease whatever digit you are next to...this is a quick way to increment/decrement a numeric control by a factor other than the ones digit.  And you can use the left/right arrows to change which digit you are incrementing/decrementing.

-D

Message 5 of 11
(12,611 Views)
Darren,

I have used that for years. If the array is large (10,000 elements or more) the index display is too small to show how many elements there are. Could the default size be made larger or resize the index display when Show Last Element in selected and the value is too big for the display?

Lynn
Message 6 of 11
(12,601 Views)

Hi Lynn,

That's a good suggestion.  I'll file a suggestion against the product and maybe we'll see the "autosized array index" feature in a future version of LabVIEW... 🙂

-D

0 Kudos
Message 7 of 11
(12,595 Views)
Scroll bars on the arrays!  I think this will get me yo upgrade asap.  I heve even wrote this code in the past I wanted it so bad (really made the code look much uglier).  This should be a main bullet point in the whats new in LV 8.0 (I havent seen this mentioned yet).  Thanks for the weekly tips, keep ut the great work.
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 8 of 11
(12,587 Views)

Thanks for the nugget DarrenSmiley Happy

the customized array control made it's way to 8.0 Smiley Very Happy

Just to mention: For the numeric controls you can also press the shift key to speed up the increase rate of the arrows

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 9 of 11
(12,519 Views)
I have to agree with this suggestion - it would be very nice to have this feature (autosize array index).

Message Edited by RVallieu on 02-28-2006 12:28 PM

Ryan Vallieu CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 10 of 11
(12,316 Views)