Example Code

Auto-Scroll to show last row of Table Data

Code and Documents

Attachment

Overview

This VI demonstrate how to auto-scroll the table data to always shows the last row when table data exceeds the set Number of Rows to display.

 

 

Description

This is useful when Maximum Number of Rows (to be displayed) is fixed and last row of data is to be displayed without having to manually move the vertical scroll. This VI Sets Vertical Scrollbar if Number of rows exceeds max number of rows and sets indices displayed on the top left corner of the table.

 

 

Requirement

LabVIEW 2012 (or compatible)

 

 

Steps to Implement or Execute Code

1. Download and open the VI "Table Auto Scroll_LV2012_NI Verified"

2. Enter the table dimensions to be simulated
3. Enter the Max number of Rows to be displayed
4. Run the VI

 

 

Additional Information or References

Block Diagram

BD.PNG

 

 

Front Panel

FP.PNG

 

**This document has been updated to meet the current required format for the NI Code Exchange.**

 

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
Huck
Member
Member
on

Would it be possible for the author of this vi to post some screen shots of the vi Diagram so that it can be recreated in earlier versions of LabView ?

Thanks,

CoderBear
Member
Member
on

Since the original poster did not reply to @Huck, here is the original diagram:

table-autoscroll-front-panel.jpg

table-autoscroll-block-diagram.jpg

Enjoy,

Aldrin

CoderBear
Member
Member
on

My test UI only needed to scroll the table when the bottom is reached. I don't want the table's size or dimensions changed during the run of the test:

table-autoscroll-front-panel2.jpg

When table is full the table rows are scrolled +2 to leave a blank row at the bottom.

table-autoscroll-block-diagram2.jpg

Ciao!

Aldrin