LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

scrollbar programming

Solved!
Go to solution
An array is having vertical scroolbar. I using more than two arrays where each will be having individual scrollbar. I want to use a common scrollbar for all the arrays where if I move the slide on the scrollbar the elements in all the arrays should move up or down depending on the scrollbar move.
0 Kudos
Message 1 of 12
(4,709 Views)

Hi,

           Could you please attach your VI so that i can help you in a better way.

0 Kudos
Message 2 of 12
(4,702 Views)

Hello... 🙂

 

So you want to synchronize all scroll bars...? Is it so...?

 

Can you please explain in detail or post your code....?

0 Kudos
Message 3 of 12
(4,699 Views)

Well, if all arrays should always scroll together, you might want to display your data in a 2D array or in a table instead. Would make more sense. 🙂

 

If you want to scroll all your 1D arrays with an external scrollbar, just place a naked scrollbar and use a "value change" event to update the "indexvals" preorty of all the arrays, for example as in the attached image.

 

Message Edited by altenbach on 10-07-2008 12:24 AM
0 Kudos
Message 4 of 12
(4,692 Views)
Solution
Accepted by topic author Rajashekar

Hi,

 

Make the scroll bar visible only for a single array and make all other array scroll bar as invisible. Then use the property node "Index Values"  of the visible scroll bar array to set to all other array Index Values.

 

Hope it helps you..

 

Regards,

 

Raja

Message 5 of 12
(4,691 Views)
Create property nodes for the arrays and use the Index Values property.

___________________
Try to take over the world!
0 Kudos
Message 6 of 12
(4,688 Views)

Thanks for the help, I tried the logic in my program its working, I need one more information what is the max size of array?

 

Regards

Rajashekar

0 Kudos
Message 7 of 12
(4,654 Views)
Are 2,147,483,647 elements enough? You'll run out of memory on most systems before you get to an array that large, anyway, so it doesn't really matter.

___________________
Try to take over the world!
0 Kudos
Message 8 of 12
(4,641 Views)

I need 6,00,000 locations in an array to store 32 bit data in each location. Is it possible?

 

Regards,

Rajashekar 

 

0 Kudos
Message 9 of 12
(4,621 Views)

6,000,000 multiplied by 4 bytes comes out to ~24 MB. That's not a problem, as long as you don't make too many data copies.


___________________
Try to take over the world!
0 Kudos
Message 10 of 12
(4,619 Views)