LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Table Auto Scroll (LV 7.1, 8.0)

Hello,

I'm filling a table in a loop via a shift register with values.
When the number of data rows exceeds the number of
visible rows of the control, the new appended data rows
aren't visible. Is there any convenient way to auto scroll
the data rows so that the last entry is always visible?

I have found a relative complex solution, like described
in
http://groups.google.de/group/comp.lang.labview/browse_frm/thread/30539e1aa22796b/efd60b1b03462844?q=table+visible&rnum=2#efd60b1b03462844
thread "odd table reference problem with LV8", but
maybe there is an easier one.

Many thanks in advance
Udo
0 Kudos
Message 1 of 7
(3,575 Views)

Hi Udo,

you should use the property EditPosition to scroll the table, see example.

Greetings,

Alberto

0 Kudos
Message 2 of 7
(3,561 Views)
Hello Alberto,

> you should use the property EditPosition to scroll the table, see example.
> scrolling table.vi:
> http://forums.ni.com/attachments/ni/170/187587/1/scrolling table.vi

thanks for your efforts. Your example is working with LV 7.1, but not
8.0. And that's the reason because my test wasn't successful
yesterday with property EditPosition. There seems to be a bug in
LV 8.0 (English version, WIN XP).

Greetings
Udo

0 Kudos
Message 3 of 7
(3,556 Views)

Udo

I have attached an example that updates the index value property. Does this help you?

David

0 Kudos
Message 4 of 7
(3,542 Views)
Hello David,

> I have attached an example that updates the index value property. Does this help you?

yes, tested with LV 8.0, many thanks for your efforts.


Greetings
Udo

Message 5 of 7
(3,529 Views)

This looks like a very handy thing to be able to do.  Unfortunately, I cannot figure out how to implement your example because I do not know what the two inputs to IndexVals of the Table represent.  I have looked at the help for Index Values Property and it is not clear to me.

 

Does Row/Column represent what the user will see as the first item in the upper left corner of the Table, as it is presented in the scroll window?

0 Kudos
Message 6 of 7
(3,173 Views)

After implementing the example with 0,0 input, I find that it works as I suspected.

I had a problem with an apparently "blank" table coming up because it somehow scrolled past the data.

Using 0,0 as the input to the IndexVals for the Table Control, I was able to initialize the scroll window so that row 0 was the first visible row.

 

Thanks for a very handy tip.

0 Kudos
Message 7 of 7
(3,167 Views)