LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Most recent data first in table view

Solved!
Go to solution

 I am adding values to a display table like in the example, but I want the top row to be the newest data for the user to see. 

 

It keeps adding to the bottom, and then the user would have to scrolll down to see all the data.      Can I select somehow the most recent data or get the table to auto scroll as data is applied?     I have tried shift registers as well but no luck.        

 

 

Here is my VI

 

Thanks

 

Mike

 

 

 

0 Kudos
Message 1 of 6
(3,903 Views)
Solution
Accepted by topic author cdnbikerdude
Did you read the help for the Insert Into Array function? It plainly says that if you leave the index inputs unwired, it will insert at the end. So, don't leave the index inputs unwired. Wire a '0' to the row index.
Message 2 of 6
(3,889 Views)
Add a zero constant to your row index on the insert into array.
Message 3 of 6
(3,888 Views)
Be aware that if you populate the table with a lot of data, its performance will get very slow.  You can work around this issue by only writing data to the table which the table is actually displaying.  To do this, you will need to use a scroll bar separate from the main table and the event structure to capture events.  If you run into this issue, let us know so we can provide some sample code.
0 Kudos
Message 4 of 6
(3,842 Views)

How can the scroll bar can be add???

0 Kudos
Message 5 of 6
(3,550 Views)

Use a scrollbar control.  Set its range based on the number of lines in the full list, and thumb size based on the number of lines displayed.  Use an event structure to capture changes so you can update the list.  Hide the vertical scrollbar on the list itself.

0 Kudos
Message 6 of 6
(3,538 Views)