LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

auto scroll table

I am using the table to display columns of data in LabView 7.1. I want to be able to have the table scroll itself down if the data just addeded to the 2d array is greater then the visible rows. (i.e. I have 10 rows showing on the table, the table is updated with a new row of data everytime a button is pressed and it takes several measurements to display in the corresponding columns. But when I take more then 10 data points/rows, you can force the table to scroll down to see the rest of the data) But how can I have the table keep scrolling down by itself if the data is bigger? Note: I can't change the rows visible and just make the table itself bigger.

Thanks,
Acer
0 Kudos
Message 1 of 4
(8,871 Views)
You can use the property IndexVals of the table to set the top row of the table visible. Determine the size of the array and adjust for the number of rows visible and write this value to the property. I've attached an example that shows what I mean.
Message 2 of 4
(8,865 Views)
Dennis, thanks for your reply. I just couldn't find the index values tab on the property node. But that was exactly what I was looking for.
Thanks again,
Acer
0 Kudos
Message 3 of 4
(8,856 Views)

Just an addition, a comment: I came across this old topic today because I searched for an auto-scroll solution for a table. The one offered here works in the example VI, but  the same thing reconstructed in my code didn't because the row values would start up with negatives. The table in the example VI seems to cope with negative row values. In my code I've added a table from the "System" controls and it would always complain about negative row values.

 

My solution was to only start setting the index values property when the number of filled rows in the table would exceed the defined table height.

0 Kudos
Message 4 of 4
(2,437 Views)