LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I add a scroll bar to an array?

I want to take a 2D array and change the row its is in with a scrollbar so that in a another array index I can pull out individual number from each row. 

 

So I have a CSV file [time,1,2,3,4,5] and I want the user to able to vary the time with a scrollbar. 

 

Thanks! 

0 Kudos
Message 1 of 5
(3,592 Views)

Just kidding, I figured it out but for some reason it only scrolls though 8 vaules, not that 1000's that I need it to...

0 Kudos
Message 2 of 5
(3,583 Views)

sofiekyle,

 

Pop up on the border of the array control, select Visible Items >> (Horizontal of Vertical) Scrollbar.

 

The scrollbar only sets what is visible.  It does not set the selection point, which you would need to pull out data.  There are several property nodes which can help you manipulate the data.  It is not clear exactly what you are trying to do, so I will not guess what might work for you.  Try some things, read the help, and see if you can get it to do what you want.

 

Lynn

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

@sofiakyle wrote:

I want to take a 2D array and change the row its is in with a scrollbar so that in a another array index I can pull out individual number from each row. 

 

So I have a CSV file [time,1,2,3,4,5] and I want the user to able to vary the time with a scrollbar. 


A scrollbar is a cosmetic UI element that does not modify data (e.g. vary time) or "pull out numbers" (whatever that means).

 

If you can only scroll through 8 values, maybe you need to transpose the array to swap rows with columns.

 

 

0 Kudos
Message 4 of 5
(3,578 Views)

right click on one of the arrows on the scrollbar, "data entry" 

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