LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the spacing between elements in an array indicator

Hi All
 
I will be most grateful if you can help...I have a number of 1D array indicators on my GUI the problem is I need to show 32 vertical elements on the screen at any one time and want to avoid adding scrollbars to the window.
 
Take for example my string indicator array, obviously I have alreadfy tried reduced the font size and then reduced the array element height to fit the smaller font & try and make the most of the available space I have but i have also noticed that quite a lot of space is used inbetween each element, is there any way this can be reduced so that the elements sit closer together and the array indicator takes up less space overall?
 
Thanks for your help!
 
 
0 Kudos
Message 1 of 5
(5,869 Views)

no problem on big high resolution monitor Smiley Very Happy

Maybe a customizing of your indicator can help, a 'strait' solution with array of cluster is attached

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 ǝɥʇ'


0 Kudos
Message 2 of 5
(5,860 Views)

Thanks Henrik

Your solution seems to have achieved what i am tring to do visually, however my system islimited to 1024x768 resolution and my indicator simply consists of just an array and not an array of clusters ( I am modifying an exiting program so I want to avoid any rewriting of my code to change it from dealing with arrays to delaing with arrays of clusters).

Can you explain the steps required to adjust the spacing inbetween elements so that i can apply it to my own array indicators.

Thankyou for your help.

Tristan

0 Kudos
Message 3 of 5
(5,857 Views)

The trick with the cluster will hide parts of the indicator. Its not good practice if the indicator is updated often, since you have overlapping UI items.

Drop an array on the panel, drop a cluster inside, drop an other element or more into the cluster. Now you can 'hide' the upper space of the element to save pixel.

conversion can be done easily, see example. Instead of replacing the indicator, who's values are maybe used somewhere else (right click-find instances) you can just hide it (right click on the terminal - hide) and place the new array on the panel and update the value wherever the value chances ....  

However, it's still bad programming stile and who really wants to monitor 32 small number on the panel ??

 

 

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 ǝɥʇ'


0 Kudos
Message 4 of 5
(5,842 Views)

I would display it in a table or even a simple string indicator. See attached example (LabVIEW 7.1). 🙂

(Maybe you could even combine multiple 32 element 1D arrays into one 2D table with multiple columns).

Message Edited by altenbach on 12-12-2005 06:43 AM

Download All
0 Kudos
Message 5 of 5
(5,829 Views)