NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Trusted Enthusiast
Darren
Posts: 2,614

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
Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman
Trusted Enthusiast
TiTou
Posts: 2,689
0 Kudos

Re: Darren's Weekly Nugget 2/13/2006

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 :smileywink:
________________________________________________________________
"Cambiar el mundo, amigo Sancho, que no es locura ni utopía. sino justicia."
Cervantes
Knight of NI
altenbach
Posts: 22,833
0 Kudos

Re: Darren's Weekly Nugget 2/13/2006

Very cool.  I wasn't aware of the "last element" trick and could have really used it just yesterday.
 
Learned something new! :smileyvery-happy:

LabVIEW Champion . Oh, by the way, I work for peanutsKudos .

Active Participant
Robst
Posts: 348
0 Kudos

Re: Darren's Weekly Nugget 2/13/2006

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 :smileyvery-happy: and it would suffer less!

Thanks!

Robst, CLD
!Intercambio buenas respuestas por 1 Kudo!
LabVIEW 7.0 ->, RT, FPGA, DSC
If you try, you can lose, if you don't, you've already lost
Trusted Enthusiast
Darren
Posts: 2,614

Re: Darren's Weekly Nugget 2/13/2006

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

Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman
Proven Zealot
johnsold
Posts: 7,701

Re: Darren's Weekly Nugget 2/13/2006

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
Trusted Enthusiast
Darren
Posts: 2,614
0 Kudos

Re: Darren's Weekly Nugget 2/13/2006

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... :smileyhappy:

-D

Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman
Trusted Enthusiast
falkpl
Posts: 2,291
0 Kudos

Re: Darren's Weekly Nugget 2/13/2006

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.
CLD, CPI
Labview 4.0- 2011, RT, Vision, FPGA
Active Participant
Henrik_Volkers
Posts: 1,745

Re: Darren's Weekly Nugget 2/13/2006

Thanks for the nugget Darren:smileyhappy:

the customized array control made it's way to 8.0 :smileyvery-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 ǝɥʇ'
Active Participant
RVallieu
Posts: 324
0 Kudos

Re: Darren's Weekly Nugget 2/13/2006

[ Edited ]
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

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page